# PROCREAD

Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)

Tags: jbc jcl

# Description

PROCREAD is used to retrieve data passed to programs from a jCL program. It takes the general form:

PROCREAD variable THEN|ELSE statements
1

Where variable is a valid jBASE BASIC identifier, which will be used to store the contents of the primary input buffer of the last jCL program called.

If a jCL program did not initiate the program the PROCREAD will fail and executes any statements associated with an ELSE clause. 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.

# Note

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 jBASE BASIC programs.

An example of use is as:

PROCREAD Primary ELSE
    CRT "Unable to read the jCL buffer"
    STOP
END
1
2
3
4

Go back to jBASE BASIC

Go back to Programmers' Reference Guide