Online Access Free 000-041 Exam Questions
| Exam Code: | 000-041 |
| Exam Name: | Programming with IBM Enterprise PL/I |
| Certification Provider: | IBM |
| Free Question Number: | 146 |
| Posted: | Jun 02, 2026 |
CORRECT TEXT
What is the difference between the following two DECLARE statements, if any?
XX: PROC;
DCLA BIN FIXED(31) STATIC INIT(O);
DCL B SIN FIXED(31) AUTOMATIC INIT(0);
END;
CORRECT TEXT
Given the following piece of code, what will be the output of the preprocessor?
%F: PROC(S) RETURNS(CHAR);
DCL S CHAR;
RETURN(SUBSTR(S, 1, 1));
%END;
PUT (F(ABC));
%ACTIVATE F;
PUT (F(ABC));
CORRECT TEXT
What will be the values of the variables A, B, C and D after executing the following code?
DCL 1 XYZ, 2 A CHAR(4), 2 6 BIN FIXED(31), 2 C DEC FIXED(7), 2 D PlC '999 XYZ = ";
CORRECT TEXT
If the physical dataset referred to by DDOUT has a maximum record length of 4096 and a
RECFM=V, what happens after executing the following code?
DCL DDOUT FILE RECORD OUTPUT;
DCL OUT_CHAR CHAR(500) VARYING INIT('This is a varchar test'); OPEN FILE(DDOUT);
WRITE FILE(DDOUT) FROM(OUT_CHAR);