Multiple choice technology mainframe

READ ANSWER INTO POS 1 W=500 IF POS ANY = 'CORRECT ANSWER' T MOD POS 100 'MINDWORKS' If LRECL of file ANSWER is 80 then which one of the following is correct?

  1. POS ANY searches anywhere between POS 1 to POS 80 (LRECL)

  2. POS ANY searches anywhere between POS 1 to POS 500 (WORKING AREA)

  3. POS ANY searches anywhere between POS 80 to POS 500

  4. ANY is not a positional Keyword

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

POS ANY searches the entire record from position 1 to the record length (LRECL) defined in the file. The working storage area (WORKLEN) is separate from the search range for positional operations. Option C is wrong because it skips positions 1-79, and Option D is incorrect because ANY is indeed a valid positional keyword in SELCOPY.