Given the following declaration for X:
DCLX FIXED DEC (3) INIT (123);
If Y is declared as CHAR, what should its minimum length be to preserve the value 123 if these statements are executed?
Y = X;
X =Y;
A. 3Given the following code, what will happen?
DCL(K, L) FIXED DEC (1);
K= 1;
L = 2;
PUT SKIP LIST (12+K/L);
A. The outputis 12.5.Given the following code, which call will pass a dummy argument?
PROG: PROC OPTIONS(MAIN);
DCL SUM01 DEC FIXED(5,0) INIT (7);
DCL SUM02 DEC FIXED(9,0) INIT (999);
CALL SUBA(SUM01,
SUM02);
CALL SUSB(SUM01,
SUM02);
CALL SUBC(SUM01,
SUM02);
CALL SUBD(SUM01,
SUM02);
SUBA PROC( PRM1,
PRM2);
DCL PRM1 DEC FIXED (5,0) BYVALUE,
PRM2 DEC FIXED (9,0);
END SUBA;
SUBB: PROC( PRM1,
PRM2);
DCL PRM1 DEC FIXED (5,0),
PRM2 DEC FIXED (9,0);
END SUBD;
SUBC: PROC( PRM 1,
PRM2);
DCL PRM1 BIN FIXED (15,0),
PRM2 DEC FIXED (9,0);
END SUBC;
SUBD: PROC( PRM 1,
PRM2);
DCL PRM1 DEC FIXED(5,0) BYADDR,
PRM2 DEC FIXED (9,0) SYADDP;
END SUBD;
END PROG;
A. Call to SUBAGiven the lollowing declarations, what statement will raise STRINGSIZE condition if enabled?
DCLA_STR CHAR (100) VARYING;
DCLB_STR CHAR(10) STATIC;
DCL C_STR CHAR (100);
A. A_STR = B_STR;If the PROC name is less than 8 characters, what ENTRY point should be specified for a PL/I routine which will be FETCHed?
A. PLISTARTWhat happens after executing the following code?
DCL OUTFILE FILE RECORD OUTPUT;
DCLP PTR;
DCL I BIN FIXED(31);
DCL A BIN FIXED(31) BASED(P);
DO I = 1 TO 10;
LOCATE A FILE(OUTFILE) SET(P);
A = I;
END;
CLOSE FILE(OUTFILE);
A. 10 records will be written with value 1 to 10.Requirement Copy a dataset of record length 100 to another dataset. If the following code does not fulfill the requirement above, 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;
READ FILE(DDIN) INTO(INSTRUC);
DO WHlLE(^EOF_IN);
WRITE FILE(DDOUT) FROM(INSTRUC);
READ FILE(DDIN) INTO(INSTRUC);
WRITE FILE(DDOUT) FROM(INSTRUC);
END;
A. The code does not fulfill the requirement because too many records will be written to the output dataset, except when the input dataset is empty.Given the following pseudocode inside a loop, where should the COMMIT action be placed assuming that there is always a one-to-many relationship between header and detail tables?
1 Find header row 2 IF found 3 Update header row 4 Find detail row 5 IF found THEN 6 Update detail rows 7 ELSE 8 ENDIF 9 ENDIF
A. Afterline 3Which of the following runtime options should be reviewed when attempting to improve performance in a PL/I program?
A. DEPTCONDLMT, INFOMSGFILTER, MSGFILE and RPTOPTSWhich of the following compile list sections would be used to find the location of a static variable in a dump?
A. Attribute/Xref TableNowadays, 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.