Multiple choice technology mainframe

What is no prerequisite for using the EXECIO command?

  1. The dataset must be sequential or a member of a partitioned dataset.

  2. The dataset must be allocated to a file name or DD name.

  3. The dataset must be exclusively enqueued (DISP=OLD or NEW).

  4. TSO or MVS environment must be active.

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

EXECIO requires the dataset to be allocated (DD statement or ALLOC command) but does NOT require exclusive enqueue (DISP=OLD/SHR is fine). Question asks for 'no prerequisite' - exclusive enqueue is actually NOT required, while options A, B, D are prerequisites. The negative phrasing makes this a tricky question.

AI explanation

EXECIO (TSO/E command to read/write records to a dataset from within a CLIST/REXX exec) does require: the target be a sequential dataset or PDS member, that it be allocated to a ddname first, and that you be running in a TSO/MVS environment. It does NOT require exclusive enqueue (DISP=OLD/NEW) — EXECIO works fine against a dataset allocated with DISP=SHR, which is in fact common when multiple reads are needed. So "must be exclusively enqueued" is the one that is NOT a prerequisite, matching the marked answer.