AS400 Interview Questions Part-1
AS400 Interview Questions Part-1
What are the three types of keywords associated with printer file ?
Ans:File level, Record level & Field level.
How can see logical file based on which physical file and vice versa
Ans:DSPDBR
Is module executable
Ans:No You need to create an RPG prog to run the module.
What is procedure?
Ans:A procedure is the set of self-contained high level language statements that can perform a
particular task and then returns to a caller
1
A service program is bound into a program or other service programs using binding by reference
How will you add a field to physical file already containing data?
Ans:With CPYF command and *NOCHK & *DROP
What are the uses of FACTOR1, FACTOR2 and RESULT field for the RPG operation code
PARM?
Ans:It is add value of FACTOR1 to FACTOR2 or compare the value of FACTOR 2 with
FACTOR1.
2
Ans:READC is to read those records which have changed in the subfile. If you validate a record
in subfile on some condition all the invalid records can display in reverse image. The first which
have changed and made valid and released still displaying in reverse image. The records have
read even it has not been changed due to SFLNXTCHG.
How you will find an error which is not in the first page of the subfile without using
ROLLDOWN key?
Ans:By using keyword SFLRCDNBR.
What is SFLROLVAL?
Ans:By using this keyword you can tell system to roll on of records when the user presses
ROLLDOWN key (For this you define a hidden of 4 byte).
How you will know whether you are in SFLDROP or SFLFOLD mode?
Ans:By using the keyword SFLMODE.
How you get the relative record in a subfile in which cursor is located?
Ans:By using the keyword SFLCUSRRN (Subfile cursor relative record number).
What is QCMDEXC?
Ans:It is used to execute a single CL command within the RPG program.