TechTalk: AS/400 Shorthand Commands

General
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

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 
BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: