PROCREAD |
![]() ![]() ![]() |
The PROCREAD statement reads data from the PROC primary input buffer.
Format
PROCREAD var {THEN statement(s)} {ELSE statement(s)}
where
At least one of the THEN and ELSE clauses must be present.
If the current program was called directly or indirectly from a PROC, the PROCREAD statement copies the content of the PROC primary input buffer to the named variable and executes the THEN clause.
If the current program was not called from a PROC, the variable is set to a null string and the ELSE clause is executed.
See also: |