This example shows how to create a command to allow the system operator to call a program to start the system.
This example assumes you are using IBM-supplied source files. Do the following.
CMD PROMPT('S Command for STARTUP')
CRTCMD CMD(S) PGM(STARTUP) SRCMBR(STARTUP)
PGM STRSBS QINTER STRSBS QBATCH STRSBS QSPL STRPRTWTR DEV(QSYSPRT) OUTQ(QPRINT) WTR(WTR) STRPRTWTR DEV(WSPR2) OUTQ(WSPRINT) WTR(WTR2) SNDPGMMSG MSG('STARTUP procedure completed') MSGTYPE(*COMP) ENDPGM
CRTBNDCL STARTUP
In the previous example, S is the name of the new command (specified by the CMD parameter). STARTUP is the name of the command processing program (specified by the PGM parameter) and also the name of the source member that contains the command definition statement (specified by the SRCMBR parameter). Now the system operator can either enter S to call the command or CALL STARTUP to call the command processing program.