PROCREAD


Used to retrieve data passed to programs from a jCL program.

 

COMMAND SYNTAX

PROCREAD variable THEN|ELSE statements

 

SYNTAX ELEMENTS

variable 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.

 

NOTES

It 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

PROCREAD Primary ELSE
   CRT "Unable to read the jCL buffer"
   STOP
END


jBC