AS400 Mid Range/cmd prompt error msgs on compile
Expert: Concise Systems/Laird Scranton - 12/7/2007
QuestionQUESTION:
http://www.fuel-efficient-vehicles.org/pwsdb/pgm/tutorial-view.php?topic=15
on this web site it shows cmd prompt on cl, i keep getting errors of wrong setting when i compile it, is that outdated code?
ANSWER: What error message is the system giving you and on which line or lines of the CL program?
- Laird
---------- FOLLOW-UP ----------
QUESTION: on the CMD PROMPT LINES and the PARM lines, compile error msg says wrong setting, i am taking it, thats means wrong invironemen.
i tried doing it on a clpgm
ANSWER: Yes - sorry I misunderstood - everything from the CMD PROMPT statement to the PARM KWD(SIZLMT) line are source code for a command, and belong in a source member in QCMDSRC file, to be created as a command using the CRTCMD command.
- Laird
---------- FOLLOW-UP ----------
QUESTION: crtcmd works fine, thanks
one last question, i created a physical with dds , rpg programs say it does dds not found. my question is i copied another physical file and deleted all the old lines, it compiled but said actual dds was XXXXXX. i thought you could copy a physical member, rename it and created a new PF with no problem, was i wrong?
AnswerIf you create a file TEST from DDS with record format TESTR, then copy the file to TEST2, the new file should be still defined by DDS. The record format of TEST2 will also be TESTR, because that's what the DDS specifies.
When creating the PF, be sure to specify the name of the DDS source file, library and member, and NOT to specify a record length (for files described by DDS, the system will calculate a record length from the DDS). Otherwise, you may end up creating a flat file (non-DDS) with the record length that you specify.
- Laird