Multiple choice technology mainframe

Which of the file defenition is correct here? A)NAME * 10 A B)NAME +10 10 A C)NAME 10 10 A D)NAME IN-FILE +10 10 A

  1. A,B,C

  2. B,C

  3. B,C,D

  4. A,B,C,D

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

All four file definition formats shown are valid Easytrieve syntax. A uses * for next position. B uses +10 as relative offset. C uses absolute position (10) and length (10). D includes file name (IN-FILE) with relative offset. Each demonstrates different ways to specify field positioning in Easytrieve file definitions.

AI explanation

In CA-Easytrieve a file field is defined as field-name [qualifier] location length data-type, and the location can be specified several valid ways: '*' meaning the next available position (A), a '+n' relative displacement from the prior field (B), an absolute starting column number (C), or a qualifier/base-field plus a relative offset such as IN-FILE +10 (D). Since every one of these location forms is legal Easytrieve syntax, all four definitions A, B, C and D are correct.