Input streams

Just as you can group several steps into one job, you can group several jobs together into one input stream. Any time jobs are placed in a series and entered through one input device, the series is considered an input stream. The input device can be a terminal, a magnetic tape device, or a direct access device.

Table 1 shows a data set containing an input stream of three jobs.

Table 1. Job boundaries in a three-job input stream
Name Job control statement Explanation

Job 1

//JOB1  JOB   AT45,'GARY PUCHKOFF'
//STEP1 EXEC  PGM=A33
//DDA   DD    DSNAME=CATDS,DISP=OLD
//DDB   DD    SYSOUT=A

  First job

Job 2

//JOB2  JOB   AT87,'JAN BUSKIRK'
//STEPA EXEC  PGM=REP
//DD1   DD    *
        .
        (data)
        .
//DD2   DD    SYSOUT=C

  Second job

Job 3

//JOB3  JOB   1726,'MARK LAMAN'
//ST1   EXEC  PGM=ADDER
//DDIN  DD    DATA
        .
        (data)
        .
/*
//DDOUT DD    SYSOUT=A

  Third job