Compiling and Linking [ HP RPG/XL Programmer's Guide ] MPE/iX 5.0 Documentation
HP RPG/XL Programmer's Guide
Compiling and Linking
You can compile an RPG program and prepare it for execution in one step.
You may want to do this when you need to compile the program but execute
it at a later time.
Figure 6-5 shows how to compile and link a program using the RPGXLLK
command. RPGXLLK is contained in the job file GL50.JOB. The compiler
reads the source file GL50S.SOURCE and produces the executable program
file GL50P.PROGRAM. (Using RPGXLLK is equivalent to entering RPGXL
followed by LINK.)
To start the compile and link job shown in Figure 6-6, enter the command,
:STREAM GL50.JOB
____________________________________________________________
| |
| !JOB GL50,MGR.ACCTG |
| !RPGXLLK GL50S.SOURCE,GL50P.PROGRAM,$NULL |
| !TELL MGR.ACCTG;PROGRAM GL50 COMPILED SUCCESSFULLY|
| !EOJ |
| |
____________________________________________________________
Figure 6-6. Compiling and Linking an RPG Program From a Job File
To compile and link GL50S.SOURCE in session mode, enter this command,
:RPGXLLK GL50S.SOURCE,GL50P.PROGRAM,$NULL
In both the job and session examples above, $NULL suppresses the program
listing.
MPE/iX 5.0 Documentation