- Home
- IBM Certification
- C9050-042 Exam
- IBM.C9050-042.dumpsfiles Dumps
Free IBM C9050-042 Exam Dumps Questions & Answers
| Exam Code/Number: | C9050-042Join the discussion |
| Exam Name: | Developing with IBM Enterprise PL/I |
| Certification: | IBM |
| Question Number: | 140 |
| Publish Date: | Jun 02, 2026 |
|
Rating
100%
|
|
Total 140 questions
In the following example what value will be printed to SYSPRINT, if any, from the PUT LIST in PGM_A?
PGM_A PROC;
DCL INPARM CHAR (10) INIT('FIRST CALL);
DCL P_OUT PTR;
DCL OUTPARM CHAR(10) BASED (P_OUT);
DCL PGM_B ENTRY(CHAR(10),PTR) EXTERNAL:
CALL P0MB (INPARM,P OUT);
IF OUTPARM = 'RESULT 'THEN
DO;
INPARM = ";
CALL PGM_B (INPARM,P_OUT);
END;
PUT LIST(OUTPARM);
END;
PGM_B: PROC(INPARMP_OUT);
DCL INPARM CHAR (10);
DCL P_OUT PTR;
DCL OUTPARM CHAR (10) INIT(");
P_OUT = ADDR(OUTPARM);
IF INPARM ='FIRST CALL THEN
OUTPARM = 'RESULT ';
ELSE
OUTPARM = 'NO RESULT';
END;
Given the following statements, where will the variables A, B and C be allocated?
DCL A FIXED;
DCL B CHAR(80) BASED(P);
DCL C CHAR(1000) CONTROLLED;
DCL D AREA(1000);
DCL P PTR STATIC;
ALLOC C;
ALLOC B IN(D);
What happens after executing the following code, assuming the input file has more than 1 record?
DCL INPFILE FILE RECORD INPUT ENV(VB RECSIZE(100)); DCL P PTR;
DCL B CHAR(100) VARYING BASED(P);
DCLC CHAR(110) VARYING BASED(P);
READ FILE(INPFILE) SET(P);
C=B!! 'EXTENDED
READ FILE(INPFILE) SET(P);
A program reads a GSAM dataset sequentially, reads complementary information from DB2-
Databases and uses this information to update an IMS-Database, At the end of the program statistics
about how many records have been read and how many IMS-Segments have been updated should be
printed. The program should write checkpoints regularly and should be restartable. Which of the following
groups of information saved when the checkpoint is written will provide enough information to be able to
restart the program correctly?
Which of the following compile list sections would be used to find the location of a static variable in a
dump?