Multiple choice technology mainframe

The call function name used for getting the next record is

  1. GNXT

  2. GN

  3. GETNEXT

  4. GETN

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

The 'GN' (Get Next) function code retrieves the next sequential record from a GSAM dataset. The other options are fictional function names not part of the DL/I function code set.

AI explanation

Correct answer: GN. In IMS DL/I, GN (Get Next) is the call function used to retrieve the next sequential record/segment in the database without needing a full key. GNXT, GETNEXT, and GETN are not valid DL/I call function codes — DL/I codes are fixed 2-4 character mnemonics like GU, GN, GHN, ISRT, etc.