End Reader (ENDRDR)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The End Reader (ENDRDR) command ends the specified database reader. The reader can be stopped either immediately, without completing the current job being read, or at the end of the current job. If the reader is in a hold state when this command is issued, the reader is stopped immediately.

Top

Parameters

Keyword Description Choices Notes
RDR Reader Name Required, Positional 1
OPTION When to end reader *CNTRLD, *IMMED Optional, Positional 2
Top

Reader (RDR)

Specifies the database reader to be ended.

This is a required parameter.

name
Specify the name of the reader to be ended.
Top

When to end reader (OPTION)

Specifies when the ended reader should stop processing.

*CNTRLD
The reader stops processing after the current job is read and an entry for the job is placed on the job queue.
*IMMED
The reader stops processing immediately. The job being read is not placed on the job queue.
Top

Examples

ENDRDR   RDR(DISKETTE)

This command stops the reader DISKETTE as soon as the current job is completely read in and releases that device to the system.

Top

Error messages

*ESCAPE Messages

CPF1317
No response from subsystem for job &3/&2/&1.
CPF1352
Function not done. &3/&2/&1 in transition condition.
CPF3312
Reader &1 neither active nor on job queue.
CPF3330
Necessary resource not available.
CPF3490
Not authorized to specified reader.
Top