Creating New Commands
New commands can be created to call non-system programs and they will work exactly like the AS/400 variety. The Command Definition Language is described in the CL Programmer's Guide.
It's a good idea to create help screens for new commands and their parameters. All help screens use Panel Group objects (*PNLGRP) and these can be created using the UIM language described in the IBM AS/400 Application Display Programming manual.
Beginning in V5R3 of the operating system a new, much simpler method of creating help was added: run the command
GENCMDDOC CMD(MYLIB/MYCMD) TODIR('/QSYS.LIB/MYLIB.LIB/QPNLSRC.FILE) GENOPT(*UIM)A skeleton UIM panel group will be automatically generated including all parameters described by the command. The result file can be edited (seu, wdsc, rdi), then compiled with the CRTPNLGRP command, and finally associated with the command via CHGCMD HLPPNLGRP.
Read more about this topic: AS/400 Control Language
Famous quotes containing the words creating and/or commands:
“The next generation of women will enter a world in which they are perceived to have more opportunities for creating fulfilling lives than women have ever had before.”
—Elizabeth Debold (20th century)
“I do not speak with any fondness but the language of coolest history, when I say that Boston commands attention as the town which was appointed in the destiny of nations to lead the civilization of North America.”
—Ralph Waldo Emerson (18031882)