AS/400 Control Language - Creating New Commands

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)

    How often we read that the enemy occupied a position which commanded the old, and so the fort was evacuated! Have not the school-house and the printing-press occupied a position which commands such a fort as this?
    Henry David Thoreau (1817–1862)