Prerequisite:
A sorted input dataset with record length 100 contains at least one record for all the values `1', `2', `3' in
the first byte. The applied sort criteria is 1,100,ch,a.
Requirements:
1.) All records with `1' in the first byte must be ignored. 2.) All records with `2' in the first byte must be
written to the output dataset. 3.) If there is a `3' in the first byte, the program must not read more records.
4.) The program must not abend or loop infinitely.
If the following code does not fulfill the requirements above, which would be the reason, if any? DCL DDIN
FILE RECORD INPUT;
DCL DDOUT FILE RECORD OUTPUT;
DCL 1 INSTRUC,
3 A CHAR(1),
3 * CHAR(99);
DCL EOF_IN BIT(1) INIT('0'B);
DCL (Z1,Z2,Z3,ZO) BIN FIXED(31) INIT(0);
ON ENDFILE(DDIN) EOF IN = `1'B;
READ FILE(DDIN) INTO (INSTRUC);
IF EOF_IN THEN LEAVE;
SELECT(INSTRUC .A);
WHEN('1') DO;
Z1 += Z1;
ITERATE LAB;
END;
WHEN('3') DO;
Z3 = Z3 + 1;
LEAVE;
END;
WHEN('2') DO;
Z2 = Z2 + 1;
WRITE FILE(DDOUT) FROM(INSTRUC);
END;
OTHER DO;
ZO = ZO + 1;
PUT SKIP LIST(INSTRUC.A);
END; END;/*SELECT*/
END;/*LOOP*/
A. The code does not fulfill the requirement, because the program will loop infinitely.
B. The code fulfills the requirement.
C. The code does not fulfill the requirement, because not all records with `2' in the first byte will be written to the output dataset.
D. The code does not fulfill the requirement, because the READ iteration will not be left when the first record with `3' in the first byte appears.
Which of the following compiler options should be checked first when addressing performance issues in a PL/I program?
A. RENT and MAXMEM
B. ARCH and MAXSTMT
C. OPT and DEFAULT
D. ATTRIBUTES and LIST
A programmer has submitted the following declaration for review. What feedback should be provided to
the programmer?
DCL 1 A,
2 B DIM (1000) FIXED BIN (31) INIT (0),
2 C DIM (1000) FIXED BIN (15) INIT (0);
A. The code is good as written.
B. A is incorrectly initialized and the code must be changed.
C. Discuss with the programmer how many elements of the arrays need to be initialized.
D. The declaration of A should be changed because the current declaration contains padding bytes.
Which of the following structures will NOT contain padding btes if the PL/I default for alignment is applied?
A. DCL 1 A,2 B FIXED BIN (31),2 C CHAR (2) VAR ALIGNED,2 D FIXED BIN (31),2 E FIXED DEC (1),2 F CHAR (3) YAP;
B. DCL 1 A ALIGNED,2 B FIXED BIN (31),2 C CHAR (2) VAR,2 D FIXED BIN (31),2 E FIXED DEC (1),2 F CHAR (3) VAR,
C. DCL 1 A,2 B FIXED BIN (31),2 C CHAR (2) VAP,2 D FIXED BIN (31),2 E FIXED DEC (1),2 F CHAR
(3) VAR ALIGNED;
D. DCL 1 A,2 B FIXED BIN (31),2 C CHAR (2) VAR,2 D FIXED BIN (31),2 E FIXED DEC (1),2 F FLOAT DEC (6);
Given the following declaration, how many variables are initialized to 0? DCL 1 A DIM (10),
2 B,
3 C FIXED BIN (31) INIT (4, (*)0),
3 D FIXED DEC (5,2) NIT ((4)0),
3 E FIXED DEC (5,2) NIT (4, 0),
2 F FLOAT NIT (0);
A. 7
B. 15
C. 17
D. 23
Input to a SORT routine requires the starting position of each field to be sorted. Which of the following
calculates a value of 5 for field B?
DCL 1 S,
2 A CHAR(4),
2 B BIN FIXED(31);
A. POINTERDIFF(ADDR(S), ADDR(S.B))
B. POINTERDIFF(ADDR(S.B), ADDR(S))
C. POINTERDIFF(ADDR(S.B),ADDR(S)) + 1
D. POINTERDIFF(ADDR(S), ADDR(S.B)) + 1
PL/I programs which have been written under Intel architecture are now to be recompiled and run on the mainframe. What will happen to the programs during compilation and execution?
A. They will not run correctly because the byte order on mainframe is bigendian.
B. They can be recompiled unchanged and will run correctly.
C. They may have to be changed before they run correctly on the mainframe.
D. They will not compile correctly on mainframe because ASCII has no NOT sign.
How much storage in bytes will be allocated for the following declaration? DCL 1 S(10) ALIGNED,
2 A BIN FIXED(15),
2 B DEC FIXED(3),
2 C CHAP(3);
A. 70
B. 79
C. 80
D. 69
The lead developer has reviewed the team's progress and determined that the deadline of one week cannot be met since all of the modules have not been thoroughly tested. Which of the following is the best action for the lead developer to take?
A. Ask management for more staff to ensure the testing is completed by the deadline.
B. Suggest that management lower the price of the productsince it does not have all therequired functionality.
C. Tell managementthatthe quality of the software maybe lowerthan expected but itwill be delivered on time.
D. Tell management that not all functionality can be provided but those modules provided will be of high quality.
Given the following code example, what is the value of A after the last CALL to ADD_RUT? PGM2: PROC
OPTIONS(MAIN,REENTRANT) REORDER;
DCL A BIN FIXED (15);
A =1
CALL ADD_RUT (A);
CALL ADD_RUT (A);
CALL ADD_RUT (A);
ADD_RUT: PROC (VAL);
DCL VAL DEC FIXED (15);
VAL = VAL + 1;
END ADD_RUT;
END PGM2;
A. 4
B. 3
C. 2
D. 1
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only IBM exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your C6030-042 exam preparations and IBM certification application, do not hesitate to visit our Vcedump.com to find your solutions here.