In which of the following examples will a dummy argument be passed?
A. DCLA EXT ENTRY;DCL (X,Y) FIXED BIN;CALL A(X,Y);
B. DCL A EXT ENTRY (FIXED, BINARY);DCL (X,Y) FIXED BIN;CALL A(X,Y);
C. DCL A EXT ENTRY (FIXED BINARY);DCL (X,Y) FIXED BIN;CALL A(X,Y);
D. PGM: PROC OPTIONS(MAIN);DCL (X,Y) FIXED BIN;CALL C (X,Y);
E. PROC (A,B);DCL (A,B) BIN FIXED;END C;END PGM;
Given the following code:
DCL INDATA FILE RECORD INPUT;
DCL INSTRUC CHAR(100);
DCL EOF BIT(1) INIT('0'B);
ON ENDFILE(INDATA) EOF = `1'B;
OPEN FILE(INDATA);
READ FILE(INDATA) INTO(INSTRUC);
DO WHILE (^EOF);
CALL SR_PROCESS;
READ FILE(INDATA) INTO(INSTRUC);
END;
CLOSE FILE(INDATA);
If the database (input file) changes from OS-PS to DB2 view and the necessary syntax has been changed
accordingly, which of the following DB2-related steps is NOT additionally required to guarantee the same
level of stability and functionality?
A. Check the SQLCODE after each EXEC SQL FETCH statement.
B. Check the SQLCODE after each EXEC SQL OPEN / CLOSE statement.
C. Set the EOF bit to `1'B, if SQLCODE = 100 (not found).
D. Check the CURRENT SQLID.
The following function converts a character string to uppercase. What is the best way to improve the performance?
SET_TO_UPPERCASE: PROC(CHARSTR) RETURNS (CHAR(120) VARYING); DCL CHARSTR CHAR
(120)
VARYING;
DCL UCCHAR(26) INIT('ASCDEFGHIJKLMNOPQRSTUVWXYZ');
DCL LCCHAR(26) INlT('abcdefghijkImnopqrstuvxy'z');
DCL RCHAR(120) VARYING INIT(");
R = TRANSLATE(CHARSTR,UC,LC);
RETURN(R);
END SET_TO_UPPERCASE;
A.
Use VALUE on the declares for UC and LC.
B.
Declare variables UC and LC as STATIC.
C.
Use the UPPERCASE function instead of SET_TO_UPPERCASE.
D.
RETURN(TRANSLATE(CHARSTR,UC,LC)) to avoid the unnecessary assignment to R.
WIDECHAR can be converted to CHAR. Which rule has to be observed?
A. Each WIDECHAR value has to be less than `0080'WX, otherwise CONVERSION is raised.
B. All WIDECHAR values can be converted to CHAP using the appropriate builtin function.
C. Each WIDECHAR value has to be less than or equal to `00FF'WX, otherwise CONVERSIONis raised.
D. By conversion of WIDECHAR to CHAR the left byte is omitted.
Assuming there is no information about the duration or each table update and the programs are running in a multitasking environment, which of the following options will best minimize the chance for deadlocks?
A. Program A updates Table A, Table B and Table C in the specified order, and Program B updates Table B, Table C and Table A in the specified order.
B. Program A updates Table A, Table B and Table C in the specified order, and Program B updates Table C, Table B and Table A in the specified order.
C. All programs update Table A, Table B and Table C in the same order.
D. Programs update table A, Table B and Table C in random order.
Given the following code whatwill be output, if an,thing?
DCLX FIXED DEC (5,2) INIT (-123.45);
DCL S CHAR (7);
PUT STRING (S) EDIT (X) (A(7));
PUT DATA (5);
A. S=' -123.4'
B. S='123.45'
C. S='-123.45';
D. The program ends abnormally at runtime with condition CONVERSION.
A software package utilizes several licensed third party software components and will be sold to multiple customers who will also need runtime licenses. What information is LEAST appropriate to provide in a technical operations guide?
A. The contact information of the third party vendors
B. The price or the third party software components
C. The required release level or the third party software components
D. The URL for the third party vendor
Which of the following declarations uses the LEAST memory? DCL 1 S1 ALIGNED,
2 A CHAR(3),
2 B BIN FIXED(31),
2 C DEC FIXED(5), 2 D BIN FIXED(15); DCL 1 S2 UNALIGNED, 2 A CHAR(3), 2 B BIN FIXED(31), 2 C DEC FIXED(5), 2 D BIN FIXED(15); DCL 1 S3 ALIGNED, 2 B BIN FIXED(31), 2 A CHAR(3), 2 D BIN FIXED(15), 2 C DEC FIXED(5);
DCL 1 S4 ALIGNED, 2 D BIN FIXED(15), 2 A CHAR(3), 2 B BIN FIXED(31), 2 C DEC FIXED(5);
A. S1
B. S2
C. S3
D. S4
In which of the following cases is a performance analyzer tool NOT useful?
A. To time and tune programs
B. To locate program hangs and deadlocks
C. To show the frequency and duration of function calls
D. To identify the code causing a storage overlay
It becomes apparent that the deadline to implement and test all the functions required for an application is at risk. Which of the following is the best course of action?
A. Inform management that more people are required.
B. Inform management that some functions will not have been tested when the system isimplemented.
C. Inform management thatthe deadline has to be changed.
D. Inform the team and the sponsor aboutthe problem and discuss possible solutions.