Beruflich Dokumente
Kultur Dokumente
Which of the following operations does NOT zero the field FLDA defined as 4,0
MOVE *ZEROS FLDA
Z-ADD *ZEROS FLDA
Z-ADD 0 FLDA
MOVE *ALL'0' FLDA
SUB FLDA FLDA
MOVE '0000' FLDA
CLEAR FLDA
MOVE *BLANKS FLDA
ORDHDRF KRENAMEORDHDRF1
In order to rename the record format of a data base file in a program,
we can use the above steps.
Purpose of renaming is:
If the record format name issimilar in two files and
if both are used in a same program,
the program will notcompile. Hence we have to rename either of the file.
22. What is the purpose of the following
C/COPY QRPGSRC,ORDERR
During the compilation the source code of ORDERR copy book is copied into theexi
sting program.
Where as /COPY is compiler directive statement.
23. What is the purpose of the following
FORDHDR1 CF E WORKSTN
$2SFN SFILE FMT2
The above line indicates that,
$2SFN is a relative record number and FMT2 is nameof the subfile record format.
24. What is the purpose of the following
I UDS
I 1 60ORDER#
I 7 90LINE#
The purpose is to define the variables in I-Spec and these are further used in C
-spec.
Where as U indicates data area data structure?
The above code is used toupdate the data area value through the program.
The letter "U" indicates that thedefined data structure is a data area data stru
cture.
25. What is the purpose of the following?
A CSRLOC (F1ROW F1COL)
Using this record level keyword,
you can specify cursor location on an outputoperation to the record format you a
re defining.
The program sends output aftersetting the cursor location.
26. What is the difference between SFLCLR and SFLINZ?
SFLCLR : It clears the subfile.
SFLINZ : First it clears the subfile and initiliazing the numeric variables with
zeros and
alphanumeric variables with characters.
27. Define the purpose/use for SFLRNA?
Using this, we can make specified subfile record format inactive.
28. Define what the operation will do, the purpose of the result field and thepu
rpose of *IN66?
HI LO EQ
C CALL 'CVTDAT' DTPRM 66
The above statement causes, call the program and pass the parameter.
29. Define each of the following operation codes
a. READ To read the records sequentially.
b. READE To read the equal key records