Multiple choice technology mainframe

The syntax: //INPUT DD * is used for what purpose?

  1. To specify that this DDNAME refers to a null dataset

  2. To specify that this DDNAME refers to the same dataset as the prior DD statement

  3. To specify that the data is contained in the JCL stream immediately after this DD statement

  4. To specify that the DDNAME refers to the same dataset as the DD statement with DDNAME of INPUT in the prior job step

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The DD * syntax indicates that input data will be provided in-stream immediately after this DD statement, until a /* delimiter is encountered. This is commonly used for small amounts of test data. DD DUMMY would specify a null dataset.

AI explanation

In JCL, //INPUT DD * uses the asterisk parameter to indicate that instream data follows immediately after this DD statement in the job stream, terminated by a /* delimiter (or another JCL statement). This is correct. It is not used to specify a null/dummy dataset (that's DD DUMMY), nor to reference the same dataset as a prior DD statement (that's done via DD *.stepname.ddname or DD DSN=...,DISP=... referencing a cataloged name), nor to back-reference a DDNAME from a prior job step (that uses DD DSN=*.stepname.ddname). The asterisk specifically signals inline/instream data in the JCL deck itself.