![]() ![]() |
|
PROCREADUsed to retrieve data passed to programs from a jCL program.
COMMAND SYNTAXPROCREAD variable THEN|ELSE statements
SYNTAX ELEMENTSvariable is a valid jBC identifier, which will be used to store the contents of the primary input buffer of the last jCL program called. If the program was not initiated by a jCL program then the PROCREAD will fail and any statements associated with an ELSE clause will be executed. If the program was initiated by a jCL program then the PROCREAD will succeed, the jCL primary input buffer will be assigned to variable and any statements associated with a THEN clause will be executed.
NOTESIt is recommended that the use of jCL and therefore the PROCREAD statement should be not be expanded within your application and gradually replaced with more sophisticated methods such as UNIX scripts or jBC programs.
EXAMPLE
|