Examples of running programs with HP COBOL

With HP COBOL, the syntax for running a COBOL program with an XL (Executable Library) in your group library is:

:RUN program; 
   INFO='options'; PARM=parameter; 
   XL='xl.group.account'

or

:RUN program; 
   INFO='options'; PARM=parameter; 
   LIB=G

where:

program is the name of the program you want to run;

options are any options to your program;

parameter specifies any software switches you need to set;

xl.group.account is the name of your XL; and

LIB=G means the program's group library is searched first, next its public account library is searched, and finally the system library is searched to resolve the program's external references. You can also specify LIB=P or LIB=S.