ENDRDR (End Reader)

ENDRDR Command syntax diagram

 

Purpose

The End Reader (ENDRDR) command ends the specified diskette or database reader and makes its associated input device available to the system. 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.

 

Required Parameters

RDR
Specifies the name of the diskette or database reader being ended. The reader's associated input device is made available to the system.

 

Optional Parameters

OPTION
Specifies when the ended reader stops processing.

*CNTRLD: The job is ended in a controlled manner. This allows the program to perform cleanup (end-of-job processing).

*IMMED: The reader stops processing in a controlled manner immediately. The job being read in is not placed on the job queue.

Example for ENDRDR

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.

Error messages for ENDRDR

*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.