The following structure is used when writing a file on Intel architecture which is sent to the mainframe:
DCL 1 A,
2 B FIXED BIN (31),
2 C CHAR (100) VAR,
2 D FIXED BIN (31);
How must this structure be declared on the mainframe if the file is to be read correctly?
A. DCL1 A,2 B FIXED BIN (31) LITTLEENDIAN,2 C CHAR (100) VAR LITTLEENDIAN,2 D CHAR (10);
B. DCL1 A,2 B FIXED BIN (31) BIGENDIAN,2 C CHAR (100) VAR BIGENDIAN,2 D CHAR (10);
C. D CL 1 A,2 B FIXED BIN (31) BIGENDIAN,2 C CHAR (100) VAR,2 D CHAR (10);
D. DCL1 A,2 B FIXED BIN (31) LITTLEENDIAN,2 C CHAR (100) VAR,2 D CHAR (10);
Given the following example, what will happen with the PUT SKIP DATA statement after the DO- loop?
PGM_A PROC OPTIONS(MAIN);
DCL I FIXED SIN (31);
DCL MON CHAR (10);
DCL DAY(12) CHAP (2) INIT (`31',`28',`31',
`30',`31',`30'
31',`31',`30'
`31',`30',`31');
DO I = 1 TO 12;
MON = MON_FUNC(I);
PUT DATA (MON,DAY(I));
END;
PUT SKIP DATA (MON_ARR);
MON_FUNC: PROC(INP) RETURNS(CHAP(10));
DCL INP FIXED BIN (31);
DCL MON_APP(12) CHAR (10) INIT (`JANUARY ',`FEBRUARY ',`MARCH `, `APRIL ',`MAY ``JUNE
`JULY ``AUGUST ``SEPTEMBER',`OCTOBER `,`NOVEMBER `,`DECEMBER `); RETURN(MON_ARR
(INP));
END;
END;
A. A table of the months of theyearwill be printed.
B. The compiler will issue no messages but the program will tail trying to execute the statement.
C. The compiler will issue a message for the statement and results are unpredictable.
D. Twelve zeroes will be printed.
The following program was written to copy a dataset with record length of 100 to another dataset. If this requirement has not been fulfilled, which is the most likely reason?
DCL DDIN FILE RECORD INPUT;
DCL DDOUT FILE RECORD OUTPUT;
DCL INSTRUC CHAR(100);
DCL EOF_IN BIT(1) INIT('0'B);
ON ENDFILE(DDIN) EOF_IN = `1'B;
DO UNTIL (EOF_IN);
READ FILE (DDIN) INTO(INSTRUC);
WRITE FILE(DDOUT) FROM(INSTRUC);
END;
A. The code fulfills the requirement.
B. The code does not fulfill the requirement because the input structure is the same as the output structure.
C. The code does not fulfill the requirement because the OPEN statements are missing.
D. The code does not fulfill the requirement because too many records will be written to the output dataset.
Which of the following would a non-technical manager be LEAST interested in regarding migration to Enterprise PL/I?
A. Amount of computer resources needed for the conversion
B. How many programs would be affected and the effort required
C. Whether training programs would be needed
D. Which Enterprise compiler options should be specified
Given the following code, which statement will produce an E level preprocessor message?
%DCL ABC ENTRY;
%ABC: PROC (X,Y) STATEMENT RETURNS(CHAR); DCL(XY) CHAR; IF ^PARMSET(X) THEN NOTE
('NO X `,0);
IF ^PARMSET(Y) THEN NOTE('NO Y `8');
RETURN('/* `!!X!!YI!'C */');
%END ABC;
A. ABC Y(B)X(A);
B. ABC (A,);
C. ABC (A,B);
D. ABC(,B);
Given the following pseudocode example, at which label should an unconditional COMMIT be placed assuming there is a one-to-many relationship between FIL01 and FIL02 and FlL01 contains several thousand records? Read record from file FIL01
A. DO while there are records in FIL01IF record in FIL01 specifies update THENDO for all records matching in FIL02Update record in FIL02 with information from FIL01 end DO
B. end IF
C. Read next record in FIL01
D. end DO
E. A
F. B
G. C
H. D
A PL/I program performance analwer can best help identify which of the following?
A. Adequate code coverage
B. Changes needed to database tables
C. CPU hotspots and elapsed time percentages by procedure
D. Incorrect program logic
What happens after the following statements?
DCLI,J CHAR(5) INIT('54321');
I = J;
PUT LIST(l);
A. 54321 will be printed.
B. 5.4321E+04 will be printed.
C. CONVERSION condition will be raised.
D. SIZE condition will be raised.
What will be printed, if anything, to SYSPRINT after the following statements are executed?
CALL REVERSEIT('PL/I');
(SUBSCRIPTRANGE,SIZE,STRINGSIZE):
REVERSEIT: PROC(31);
DCL(I,J) BIN FIXED(31);
DCL (S,T) CHAR(100) VARYING;
T = S;
J = 0;
I = 0;
DO I = LENGTH(S) TO 1;
J = J + 1;
SUBSTR(T,J,1) = SUBSTR(S,I,1);
END;
PUT(T);
END;
A. `PL'I'
B. `I/LP'
C. SUBSCRIPTRANGE error will be raised.
D. STRINGSIZE error will be raised.
Which PL/I builtin function can be used to get the system return code from a called program (including non-PL/I languages)?
A. PLIRETC
B. PLIRETV
C. PLIREST
D. PLISTRA
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.