home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
3x400
/
creatopt.lzh
/
PGMRCREA.DOC
< prev
next >
Wrap
Text File
|
1988-03-12
|
3KB
|
72 lines
USING THE PGMRCREAT PROGRAM
The PGMRCREAT program is submitted by the PGMREXIT program to process special
object create options and commands associated with a specific source member. Refer
to the PGMREXIT module description for information on installing this feature.
The create option and/or command source statements must be specified before any
other source statements in the member and be in the form of a comment. The create
option source statements must 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....+....8
/* 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....+....8
* CRTOPT PUBAUT(*ALL)
* CRTOPT TEXT('Text specified in source member.')
The create command source statements must have the following format:
POSITIONS VALUE
1 to 8 any characters
9 to 14 CRTCMD
15 to 15 any characters
16 to 65 any command statement (or fragment continued with + or -)
66 to end any characters
For example, the following CL source statements would be required to specify that
the command OVRDBF FILE(SOURCE1) TOFILE(SOURCE2.MYLIB):
....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
/* CRTCMD OVRDBF FILE(SOURCE1) TOFILE(SOURCE2.MYLIB) */
The same command could also be specified as follows:
....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
/* CRTCMD OVRDBF FILE(SOURCE1) + */
/* CRTCMD TOFILE(SOURCE2.MYLIB) */
Any number of create option and/or command lines may be specified and may appear
in any order. If the CRTxxxPGM, CRTxxxF, etc. 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. Any create
commands are executed before the CRTxxxPGM, CRTxxxF, etc. command.^R
^E