Multiple choice technology programming languages

Suppose you want to allocate RSREFR file to “RS.M204TST2.RSREFR.FILE”,then which of the following “ALLOCATE” statement is correct ?

  1. ALLOCATE RSREFR WITH DSN= RS.M204TST2.RSREFR.FILE OLD DIRECT

  2. ALLOCATE RSREFR WITH $DSN= RS.M204TST2.RSREFR.FILE OLD DIRECT

  3. ALLOCATE RSREFR WITH DSN= RS.M204TST2.RSREFR.FILE OLD

  4. Both (a) &(c) are correct

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

The ALLOCATE statement syntax varies by system. Option A includes OLD DIRECT while option C has only OLD. Both could be valid depending on the specific system's syntax requirements. The claimed answer D says both are correct, which may be accurate if the system accepts both forms.