mainframe Online Quiz - 73
|Description: mainframe Online Quiz - 73|
|Number of Questions: 20|
|Created by: Aliensbrain Bot|
If a field is defined as Pic s9(6)v99 comp-3, it uses 5 bytes of storage
You store it as YYYYMMDD in 8 bytes. What is the COBOL definition of this field?
"Let A = 0, B = 9….. Perform until a > b Add 2 to a End-perform How many additions are performed? "
//MYJOB JOB(E343),'ABCDEFGH' //JOBLIB DD DSN=ABCD.PROD.LOADLIB,DISP=SHR //STEP1 EXEC PGM=PROG //STEPLIB DD DSN=ABCD.PPROD.LOADLIB,DISP=SHR //STEP2 EXEC PGM=PROG1 //STEPLIB DD DSN=ABCD.TEST.LOADLIB,DISP=SHR ..... ..... In the above code, from which library the loadmodule of PROG1 is executed
"//STEP1 EXEC PGM=PROG,PARM='ABCDEFGH' Maximum number of characters that can be accomodated in parameter PARM"
Which is true?
If REGION is coded as 0K or 0M, how much storage would be assigned to the job
Coding TIME=MAXIMUM allows the job or step to run for
When we specify V for RECFM parameter, what should we mention for the value of LRECL parameter
Maximum number of sequential datasets that can be concatenated
What statement marks the end of an in-stream or Catalogued procedure
A data set name can be up to ____ characters long, including periods.
COBOL statements should start in a fresh line
which code snippet can be used to iterate an instruction for 6 times? Note: indicates new line
Which of the following variable names for data items are not syntactically correct?
To determine which of the following variable names for data items are not syntactically correct, let's go through each option:
A. CIBER-CITY - This option is syntactically correct. Variable names can contain letters, numbers, and underscores, but cannot start with a number.
B. -NW-OF-FOOD - This option is not syntactically correct. Variable names cannot start with a hyphen or any special characters.
C. TOTAL-NO-OF-LINES-PER-PAGE - This option is syntactically correct. Variable names can contain underscores to separate words.
D. PHONE NUMBER - This option is not syntactically correct. Variable names cannot contain whitespace or spaces.
E. INDEX - This option is syntactically correct. Variable names can be single words and can contain letters, numbers, and underscores.
Therefore, the variable names that are not syntactically correct are B. -NW-OF-FOOD, D. PHONE NUMBER, and E. INDEX.
A period is mandatory
Say A, B, C, ... are COBOL statements, in which order will they be executed? MAIN-PAR. PERFORM INIT-PAR Z PERFORM TERM-PAR X STOP RUN. INIT-PAR. A B PERFORM READ-X. LOOP-PAR. E F. TERM-PAR. G H. READ-X. X.
Take a look at the following variable declarations. What will be the content of RESULT at the end of the series of MOVE instructions? 01 ELE-1 PIC X(5) VALUE 'ELRI'. 01 ELE-2 PIC X(10). 01 ELE-3 PIC X(2). 01 RES PIC X(5). MOVE 'TABLE' TO RES MOVE ELE-1 TO ELE-2 MOVE ELE-2 TO ELE-3 MOVE ELE-3 TO RES