IBM ILE RPG Programmer - 000-972무료 덤프문제 풀어보기
Given the following code sample:
Fcustfile if e k disk rename(custr : custrec)
D custKeys ds likerec(custrec : *key)
What is the correct syntax for chaining to the file?
Fcustfile if e k disk rename(custr : custrec)
D custKeys ds likerec(custrec : *key)
What is the correct syntax for chaining to the file?
정답: C
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"?
정답: A
File CUSMS contains a field named CMCSNO. Which of the following file specification keywords will allow the program to recognize this field as CUSTCSNO?
정답: B
Which of the following determine the activation group in which an ILE RPG program will run?
정답: B
In the example below, the elements of the Sales array are added to the TotalSales variable. Which
of the statements below can be used to replace the "For" loop?
FSalesFile IF E K Disk
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++
D SalesArr S 8S 2 DIM(12)
D TotalSales S 9S 2
D Mon S 2S 0
/Free
// Accumulate total sales for year
For Mon = 1 to 12;
TotalSales += SalesArr(Mon);
EndFor;
*inlr = *on;
/End-free
of the statements below can be used to replace the "For" loop?
FSalesFile IF E K Disk
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++
D SalesArr S 8S 2 DIM(12)
D TotalSales S 9S 2
D Mon S 2S 0
/Free
// Accumulate total sales for year
For Mon = 1 to 12;
TotalSales += SalesArr(Mon);
EndFor;
*inlr = *on;
/End-free
정답: A
Given the following code:
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++ d a s 10i 0
Inz(5)
d b s 10i 0 Inz(10)
d c S 10i 0 Inz(20)
/Free
if (b > a and c < b );
c = 1;
elseIf (a < b and a > c);
c = 2;
elseIf (a < b and c <> 20);
c = 3;
EndIf;
What is the value of the field C upon completion of the code?
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++ d a s 10i 0
Inz(5)
d b s 10i 0 Inz(10)
d c S 10i 0 Inz(20)
/Free
if (b > a and c < b );
c = 1;
elseIf (a < b and a > c);
c = 2;
elseIf (a < b and c <> 20);
c = 3;
EndIf;
What is the value of the field C upon completion of the code?
정답: D
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?
정답: B