IBM Rpg iv with ile Sample Questions:
1. Which of the following can be achieved by passing parameters by Value instead of by Reference?
A) A packed decimal field being passed where a date type field is expected
B) A character field of length 10 being passed where a date type field is expected
C) A zoned numeric field being passed where a packed decimal field is expected.
D) A character literal being passed where a zoned numeric field is expected.
2. Which of the following RPG IV operations will output a display file format on the screen and continue processing without waiting for a user response?
A) EXCEPT
B) WRITE
C) DSPLY
D) EXFMT
3. What is the purpose of a procedure prototype in a calling program?
A) To identify the names of work fields to be used in the subprocedure
B) To define the local variables of the procedure
C) To define the field names to be passed on the call to the subprocedure
D) To ensure the procedure is called with appropriate parameters
4. Given the following code segment:
AAN01N02 N03T.Name++++++RLen++TDpBLinPosFunctions++++++++++++++++
A R D1SF SFL
A OPTNBR 1A B 10 3
A SCNDTA 50A O 10 7
A R D1SC SFLCTL(D1SF)
A 79 SFLDSP
A 81 SFLDSPCTL
A SFLSIZ(1000)
A SFLPAG(0011)
A 9 2'Opt Data
What DDS keyword needs to be added to this code segment to remove all of the records from the subfile?
A) SFLDLT
B) SFLINZ
C) SFLRMV
D) SFLCLR
5. In the following code segment, file CustMast contains a record format CustMastR.
fCustMast uf e k disk
d CustDs e ds
/free
dou %eof(CustMast);
read CustMastR CustDs;
..................
enddo;
/end-free
Which of the following keywords must be added to the definition of CustDs to allow for successful compilation?
A) extname(CustMastR)
B) likerec(CustMastR)
C) extname(CustMast)
D) likerec(CustMast)
Solutions:
| Question # 1 Answer: C | Question # 2 Answer: B | Question # 3 Answer: D | Question # 4 Answer: D | Question # 5 Answer: C |
We're so confident of our products that we provide no hassle product exchange.


By Scott

