Read a File (READFILE)

Where allowed to run:
  • Batch job (*BATCH)
  • Interactive job (*INTERACT)
  • Batch REXX procedure (*BREXX)
  • Interactive REXX procedure (*IREXX)
Threadsafe: No
Parameters
Examples
Error messages

.. READFILE Control Stmnt

Use the .. READFILE control statement to include a new file in the input stream. This control statement can be placed in a command file, issued using direct-workstation input, or issued from the RJE console.

Top

Parameters

Keyword Description Choices Notes
FILE Input file Qualified object name Required, Positional 1
Qualifier 1: Input file Name
Qualifier 2: Library Name, *LIBL, *CURLIB
MBR Member Name, *FIRST, *ALL Optional, Positional 2
CMD Command file *NO, *YES Optional, Positional 3
SNDDLTRCD Send deleted records *NO, *YES Optional, Positional 4
DTATYP Data type *CHAR, *ANY Optional, Positional 5
RLS Release Control *NO, *YES Optional, Positional 6
MSGQ Message queue Qualified object name Optional, Positional 7
Qualifier 1: Message queue Name, *PRV, *NONE, *RDRE
Qualifier 2: Library Name, *LIBL, *CURLIB
Top

Input File (FILE)

Specifies the qualified name of the file that contains the input stream being included.

The possible library values are:

database-file-name: Specify the name of the database file that contains the input stream.

Top

Member (MBR)

Specifies the database file member being sent to the host subsystem.

The possible values are:

Top

Command File

Specifies whether the file specified in the FILE parameter is searched for embedded RJE control statements.

The possible values are:

Top

Send Del Records (SNDDLTRCD)

Specifies whether blank records are sent to the host subsystem when deleted records are found in the database file member.

The possible values are:

Top

Data Type (DTATYP)

Specifies whether the file specified in the FILE parameter contains data characters less than hex 40.

The possible values are:

Top

Release Control (RLS)

Specifies whether RJE will process the rest of the current file (that is, the file from which .. READFILE was issued) after the included file is processed. If not, the file is released from the nested stack of the files being read.

The possible values are:

Top

Message Queue (MSGQ)

Specifies the qualified name of the message queue to which messages for the reader are sent.

The possible values are:

The possible library values are:

message-queue-name: Specify the name of the message queue.

Top

Examples

None
Top

Error messages

Unknown
Top