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:

    “I want to know whether you are a person devoted to creating or to exchanging in some respect or other: as a creator you belong to the free, as an exchanger you are their slave and instrument.”
    —Friedrich Nietzsche (1844–1900)

    “There are no more ideologies in the authentic sense of false consciousness, only advertisements for the world through its duplication and the provocative lie which does not seek belief but commands silence.”
    —Theodor W. Adorno (1903–1969)