home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
3x400
/
pgmrexit.lzh
/
PGMREXIT.DOC
< prev
next >
Wrap
Text File
|
1987-06-30
|
2KB
|
40 lines
USING THE PGMREXIT PROGRAM
The PGMREXIT program can be used as a programmer menu exit program to
retrieve object create command parameter values from the object source and
apply them to the create command string. To use this function specify
EXITPGM(PGMREXIT.USRCMDLIB) on the DSPPGMMNU or CHGPGMDFT commands.
The create option source statements must be specified before any other
source statements in the member, be in the form of a comment, and have the
following format:
POSITIONS VALUE
1 to 8 any characters
9 to 14 CRTOPT
15 to 15 any characters
16 to 65 any single parameter value in keyword format
66 to end any characters
For example, the following CL source statements would be required to
specify that the program be created specifying PUBAUT(*ALL) and TEXT('Text
specified in source member.'):
....+....1....+....2....+....3....+....4....+....5....+....6....+....7....
/* CRTOPT PUBAUT(*ALL) */
/* CRTOPT TEXT('Text specified in source member.') */
The same options would be specified in as RPG source program as follows:
....+....1....+....2....+....3....+....4....+....5....+....6....+....7....
* CRTOPT PUBAUT(*ALL)
* CRTOPT TEXT('Text specified in source member.')
Any number of create option lines may be specified. The generated command
string is syntax checked at submission time to ensure that all parameter
values are valid.
If the create command is prompted from the programmer menu and a value
specified on the prompt is also specified in the source, the value
specified on the prompt will take precedence.