IBM ILE RPG Programmer - 000-972 FREE EXAM DUMPS QUESTIONS & ANSWERS
A trigger program has been designed to run whenever file CUSTMAST is modified. A decimal data error is encountered when trying to reference a numeric field in the old record image of CUSTMAST. The buffer contained hexadecimal '40404040'. Which of the following was found to have caused the error?
Correct Answer: A
Vote an answer
Given the data structure below: DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords++++++++++++++++++++++ D Student DS Qualified D Name 35 D Address 35 D City 21 D RegistDate D Inz(*Sys) Which of the following defines a data structure named NewGrad and initializes its subfields to the same initial values as those in Student?
Correct Answer: D
Vote an answer
Given the following File Specification: FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords+++++++++++++++++++++++ facctgrpt o e printer Which of the following keywords should be added to the File Specification to enable the programmer to obtain the current page number?
Correct Answer: D
Vote an answer
If the record format of the file MyFile changes, which of the following programs will display the message "There is a problem with MyFile" as opposed to the program failing with the run time message "Error message CPF4131 appeared during OPEN for file MYFILE"?
Correct Answer: A
Vote an answer
Which of the following SQL statements, when used by itself in an RPG program, can take the place of a File Specification, a key and a CHAIN?
Correct Answer: B
Vote an answer
Given the following code sample:
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++ D
StudentDS E DS Extname(Students)
Which of the following keywords should be added to the D-spec to initialize subfields to the
defaults specified in the DDS?
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++ D
StudentDS E DS Extname(Students)
Which of the following keywords should be added to the D-spec to initialize subfields to the
defaults specified in the DDS?
Correct Answer: B
Vote an answer
Given the following code sample:
d NotLate PR ExtPgm('LARRY')
d RqDta 32767a
d RqLen 10i 0
d RqTyp 10i 0
Which of the following is the correct code to call the program Larry?
d NotLate PR ExtPgm('LARRY')
d RqDta 32767a
d RqLen 10i 0
d RqTyp 10i 0
Which of the following is the correct code to call the program Larry?
Correct Answer: D
Vote an answer