Compiling, Linking and Executing [ HP RPG/XL Programmer's Guide ] MPE/iX 5.0 Documentation
HP RPG/XL Programmer's Guide
Compiling, Linking and Executing
You can compile, link and execute an RPG program in one operation. This
comes in handy when you're testing a program.
To compile, link and execute an RPG program, enter the MPE XL RPGXLGO
command. Figure 6-7 shows how to use RPGXLGO in a job file (GL50.JOB)
that compiles and executes the RPG program, GL50S.SOURCE. The RPGXLGO
command creates a temporary executable program file $OLDPASS. $OLDPASS is
overwritten by the next RPGXLGO command and is purged when you log off.
To execute the job file in the following figure, enter the command,
:STREAM GL50.JOB
_____________________________________________________________
| |
| !JOB GL50,MGR.ACCTG |
| !RPGXLGO GL50S.SOURCE |
| !TELL MGR.ACCTG;PROGRAM GL50 COMPILED SUCCESSFULLY|
| !EOJ |
| |
_____________________________________________________________
Figure 6-7. Compiling, Linking and Executing an RPG Program From a Job File
To compile, link and execute GL50S.SOURCE in session mode, enter the
command,
:RPGXLGO GL50S.SOURCE
In both the job and session mode examples above, the program listing is
written to $STDLIST.
MPE/iX 5.0 Documentation