One of the nice things on the System/36 is the ability to enter abbreviations for commonly used commands. D U to display users, D P to display spool files, D W to display workstations, and so on.
On the AS/400 (running System/36 Environment) these commands function much the same way they did on the S/36. In native mode, no such shorthand commands are available. However, the AS/400 gives us the tools to create our own abbreviated commands. The command and program illustrated in Figures 6a and 6b shows how some of the commonly used "work with" commands can be shortened.
The command is simply called "W". By itself, it will execute the WRKJOB (Work With Job) command. With a parameter, one of the commands shown in 6c will be executed.
The command is simply called "W". By itself, it will execute the WRKJOB (Work With Job) command. With a parameter, one of the commands shown in Figure 6c will be executed.
Add your own shorthand command to the program in 6a and 6b. Create an entirely new command like a "C" command for some of the commonly used AS/400 "Change" commands. Maybe you will want to retain the System/36 style short commands in native mode. Any way you go, you will save quite a bit of typing.
Add your own shorthand command to the program in Figure 6a and 6b. Create an entirely new command like a "C" command for some of the commonly used AS/400 "Change" commands. Maybe you will want to retain the System/36 style short commands in native mode. Any way you go, you will save quite a bit of typing.
Steven Kontos Woodbury, New York
TechTalk: AS/400 Shorthand Commands
Figure 6A Command W
CMD PROMPT('Work With Selected Jobs') PARM KWD(JOB) TYPE(*CHAR) LEN(2) RSTD(*YES) + VALUES('A' 'C' 'D' 'JL' 'JQ' 'P' 'P2' 'Q' + 'QP' 'S' 'SJ' 'U' 'W') + CHOICE(*VALUES) + PROMPT('Select job to work with')
TechTalk: AS/400 Shorthand Commands
Figure 6B CL program W
W: + PGM PARM(&OPT) DCL VAR(&OPT) TYPE(*CHAR) LEN(2) IF COND(&OPT *EQ 'A') THEN(WRKACTJOB) IF COND(&OPT *EQ 'C') THEN(WRKCFGSTS CFGTYPE(*DEV)) IF COND(&OPT *EQ 'D') THEN(WRKDOC) IF COND(&OPT *EQ 'JL') THEN(WRKOUTQ OUTQ(JOBLOGS)) IF COND(&OPT *EQ 'JQ') THEN(WRKJOBQ JOBQ(QBATCH)) IF COND(&OPT *EQ 'P') THEN(WRKOUTQ OUTQ(PRT01)) IF COND(&OPT *EQ 'P2') THEN(WRKOUTQ OUTQ(PRT02)) IF COND(&OPT *EQ 'Q') THEN(WRKOUTQ) IF COND(&OPT *EQ 'QP') THEN(WRKOUTQ OUTQ(QPRINT)) IF COND(&OPT *EQ 'S') THEN(WRKSPLF) IF COND(&OPT *EQ 'SJ') THEN(WRKSBMJOB) IF COND(&OPT *EQ 'U') THEN(WRKUSRJOB) IF COND(&OPT *EQ 'W') THEN(WRKWTR) IF COND(&OPT *EQ ' ') THEN(WRKJOB) ENDPGM: + ENDPGM
LATEST COMMENTS
MC Press Online