PROCREAD

PROCREAD

Top  Previous  Next

 

The PROCREAD statement reads data from the PROC primary input buffer.

 

 

Format

 

PROCREAD var {THEN statement(s)} {ELSE statement(s)}

 

where

 

varis the variable to receive the data.

 

statement(s)are statements to be execute dependant on the outcome of the operation.

 

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:

VOC PQ-type records