IBM ILE RPG Programmer - 000-972 Exam Practice Test

Given the following code sample: fcustinq cf e workstn sfile(openord:sflrr1) d sflrr1 s 3 0 C*0N01Factor1+++++++Opcode(E)+Factor2+++++++Result+++++++Len++D+HiLoEq c *in99 doueq *on c add 1 sflrr1 c write openord 99 c enddo Which of the following /Free form code samples will perform the same task?

Correct Answer: B Vote an answer
A Service Program was originally created with the following binder language:
STRPGMEXP PGMLVL(*CURRENT)
EXPORT SYMBOL('SUBPROC_C')
EXPORT SYMBOL('SUBPROC_H')
ENDPGMEXP
Two additional subprocedures are being added to a module already bound into this service
program - SUBPROC_A and SUBPROC_I.
Which of the following binder language sources could be used to ensure that existing programs,
which use this service program, continue to work correctly without being recreated or updated?

Correct Answer: B Vote an answer
Given the following code sample:
d address s 30 inz('3207 North Henderson Parkway') d addressChars s 1 dim(30)
c movea address addressChars
c move *blanks address
Which of the following would produce identical results?

Correct Answer: B Vote an answer
Given the following code sample:
d Customer s 5 0
d Year s 4 0
d Message s 40
/free
if Annual_Sales(Customer : Year) > 50000;
Message = 'This customer gets a discount';
endif;
Which of the following is a valid prototype for Annual_Sales?

Correct Answer: B Vote an answer
File CUSSALES contains a field named JANSALES. Work fields SALESKEY and TOTSALES have been previously defined. Given the following fixed form code sample: ..CL0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq c z-add customerno saleskey 7575 c 75saleskey chain cussales 76 c 75 cann76 add jansales totsales Which of the following /Free form samples would produce the same results for field TOTSALES?

Correct Answer: B Vote an answer
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: D Vote an answer
Given the following code sample:
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++
D ElementsAllocateDS...
D S 10i 0
Which of the following best describes ElementsAllocateDS?

Correct Answer: A Vote an answer

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어