As 4001
As 4001
As 4001
5.) What is the difference between just exiting a program with retrn or
by setting on indicator LR, first?
Open files are closed when exiting with LR equal to ON.
Open files remain open when using RETRN with LR equal to OFF, and
the
program is still resident (potentially active.)
6.) What RPG operation codes are associated with data areas?
IN, OUT, UNLCK and DEFN.
8.) What operation code should be used to check for the existence of a
specific record in a keyed file?
SETLL should be used. CHAIN should be used only if data from the
file
is needed.
18.) What is the difference between the MOVE and the MOVEL?
MOVE transfer is a right justified move, MOVEL is a left justified
move.
38.) How are roll keys handled by the program and in the system?
a.) Using ROLLUP and ROLLDOWN keyword indicators, or
b.) Automatically, if SFLSIZ > SFLPAG.
39.) What is a subfile record format?
The record that contains the displayable data.
40.) What must follow the SFLCTL keyword in the subfile control record?
The name of the Subfile Record Format.
CL:
45.) If the field is defined in DDS, how is it referenced in a CL
program?
By declaring the field(DCL) and placing an ampersand in front of
the
variable name.
DDS:
69.) In the DDS keyword WINDOW(___), what belongs inside of the
parentheses?
Either the coordinates of the window or the name of the record
format.
74.) What are two methods of creating a record that consists of fields
from two or more files?
Join, LF and OPNQRYF.
75.) What keyword is used to reference the same field in another file?
REF - Reference
76.) What keyword is used to join several physical files into one
logical
file?
JFILE - Join File
79.) What is the difference between a physical file and a logical file?
Physical files contain the data, a logical file us an access path
to the physical data.
80.) Can you copy data from a physical file to a logical file?
No.
83.) Can a physical file contain more than one member, and how is it
accessed?
Yes, by using OVRDBF(___) MBR(___)
85.) When a PF is compiled and default values used how many members does
it have?
1
92.) How can a programmer control how data on a screen will display?
By using the DSPATR keyword.
Miscellaneous:
93.) What is QTEMP?
A unique temporary library associated with each job. It is deleted
at the end of a job.