In An RPG program with embedded SQL, which of the following indicates that a FETCH statement was attempted, but the cursor was positioned after the last row of the result set?
A. SQLEOF = *On
B. SQLERR
C. SQLCOD = 100
D. SQLCOD < 0
正解:C
質問 2:
An RPG source (PGMA) contains two subprocedures and no H-specs. It is company policy that such ILE programs should NEVER be allowed to run in the Default Activation Group.
Which of the following commands should be used to create the program?
A. CRTBNDRPG PGM(PGMA).....DFTACTGRP(*YES) ACTGRP(QILE)
B. CRTBNDRPG PGM(PGMA).....DFTACTGRP(*YES)
C. CRTBNDRPG PGM(PGMA).....DFTACTGRP(*NO) ACTGRP(*CALLER)
D. CRTBNDRPG PGM(PGMA).....DFTACTGRP(*NO) ACTGRP(QILE)
正解:D
質問 3:
An existing application consists of three programs. Program X calls Program A which calls Program B. The application must be changed so that the three programs become a single program (Z) using bind by copy. The CALL operations to A and B have been changed to CALLBs and the modules X, A and B have been created. These three modules are listed in the binding directory MYBNDDIR. Which of the following commands will create the bound program Z?
A. CRTBNDRPG PGM(Z) BNDDIR(MYBNDDIR) ENTMOD(X)
B. CRTPGM PGM(Z) MODULE(X) BNDDIR(MYBNDDIR)
C. CRTBNDRPG PGM(Z) BNDDIR(MYBNDDIR)
D. CRTPGM PGM(Z) BNDDIR(MYBNDDIR) ENTMOD(X)
正解:B
質問 4:
Service Program UTILA is a utility service program that once called MUST remain active for the life of the job. Which of the following commands will create the service program so that once it has been initiated all further calls to its procedures will use the same instance?
A. CRTSRVPGM SRVPGM(UTILA) ACTGRP(UTILITYA)
B. CRTSRVPGM SRVPGM(UTILA) ACTGRP(*CALLER)
C. CRTSRVPGM SRVPGM(UTILA) ACTGRP(*NEW)
D. CRTSRVPGM SRVPGM(UTILA) ACTGRP(*DFT)
正解:A
質問 5:
Given the following display file DDS example:
AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions++++++++
A SFLRCD 4S 0H SFLRCDNBR(CURSOR)
What is the use of the variable SFLRCD?
A. When control is returned to the program, SFLRCD will be set to the relative record number where the cursor is currently located.
B. When control is returned to the program, SFLRCD will be set to the number of subfile records that have been changed.
C. When displaying the subfile, the subfile record with the relative record number equal to SFLRCD will be the first subfile line displayed.
D. When displaying the subfile, the cursor will initially be positioned on the subfile record with the relative record number equal to SFLRCD.
正解:D
質問 6:
Given the following code segment:
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords++++++++++++++++++++++++
+++++
D Date6N S 6 0
D DateISO S D Inz(D'2004-10-25') Datfmt(*ISO)
CL0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq...
C *mdy Move DateISO Date6N
Which of the following statements is the /Free form equivalent to the move operation?
A. Date6N = %Dec(DateISO:*mdy);
B. Move DateISO (Date6N:*mdy);
C. Date6N = %Dec(DateISO:6:0);
D. Date6N = %Dec(DateISO);
正解:A
質問 7:
Given the following code:
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords++++++++++++++++++++
D ary S 5 Dim( 4 ) Ascend
D x S 2 0 Inz( 1 )
C Eval ary(1) = 'Tom'
C Eval ary(2) = 'Dick'
C Eval ary(4) = 'Harry'
C SortA ary
C*0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq C 'Jim ' LOOKUP ary(x) 9999 Which of the following is correct as the result of running the code?
A. %Found = *ON, %Equal = *OFF, x = 4
B. %Found = *OFF, %Equal = *OFF, x = 4
C. %Found = *ON, %Equal = *OFF, x = 3
D. %Found = *OFF, %Equal = *OFF, x = 3
正解:C
Iino -
000-268出題強化に対応! 初受験にもリトライにも使えると思います。合格しました。Pass4Testさんのおかげです