Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Start Database Reader (STRDBRDR) command starts a spooling reader using a database file; the reader reads a batch input stream from the database and places the jobs onto one or more job queues. This command specifies the name of the database file and member from which the input stream is read, the name of the reader, and the names of the job queue and message queue that are used.
More than one reader can be active at the same time (as determined by the spooled subsystem description). Each database reader must have a unique reader name, and the specified file or member must be available. The reader can also be held or canceled by using the Hold Reader (HLDRDR) command or End Reader (ENDRDR) command.
Because each reader runs independently of the job that started it, the user can continue doing other work on the system after he has started a reader.
Restriction: The specified database file either must consist of single-field records and must have an arrival sequence access path, or it must be a standard database source file.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FILE | Data base file | Qualified object name | Required, Positional 1 |
Qualifier 1: Data base file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MBR | Member | Name, *FIRST | Optional, Positional 2 |
JOBQ | Job queue | Qualified object name | Optional |
Qualifier 1: Job queue | Name, QBATCH | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MSGQ | Queue for reader messages | Single values: *REQUESTER Other values: Qualified object name |
Optional |
Qualifier 1: Queue for reader messages | Name, QSYSOPR | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
RDR | Reader | Name, *FILE | Optional |
Top |
Specifies the database file from which the input stream is to be read. The file must be available for allocation to the spooling reader before the reader can be started.
This is a required parameter.
Qualifier 1: Data base file
Qualifier 2: Library
Top |
Specifies the member in the specified file that contains the input stream.
Top |
Specifies the job queue where the spooling reader will place entries. This value is used if *RDR is specified on the Job queue (JOBQ) parameter of the Batch Job (BCHJOB) command. (Note that the job queue for each job within this input stream can be different.)
Qualifier 1: Job queue
Qualifier 2: Library
Top |
Specifies the message queue that will receive any messages that are created by the reader.
Single values
Qualifier 1: Queue for reader messages
Qualifier 2: Library
Top |
Specifies the reader to be started. Each reader name must be unique.
Top |
STRDBRDR FILE(QGPL/BILLING)
This command starts a spooled reader that reads its input from the database file named BILLING, which is in the QGPL library. The reader name is also BILLING because the RDR parameter was not specified. The first member in the BILLING file contains the input stream to be processed. The default job queue QBATCH and the system-supplied system operator's message queue QSYSOPR are used by the database reader.
Top |
*ESCAPE Messages
Top |