Multiple choice technology programming languages

A: IN SEGNRL FD RECTYPE = STORE END -------------------------- PRINT STOR.CODE END FOR In the above example if 15 records are there in found set 'A ' and I would like to print only first three records store code . What should be the statement that has to be filled in the above blank to obtain the desired output?

  1. FOR THREE RECORDS IN A

  2. FR A

  3. FOR K RECORDS IN A

  4. FOR 3 RECORDS IN A

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

FOR 3 RECORDS IN A is the correct statement to limit printing to the first 3 records of found set A. This syntax explicitly specifies the number of records to process. 'FR A' would process all records, 'FOR THREE RECORDS' uses a word instead of number, and 'FOR K RECORDS' uses an undefined variable K.