0

mainframe Online Quiz - 129

Description: mainframe Online Quiz - 129
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0

What is the Physical storage length of each of the following DB2 data types:DATE, TIME, TIMESTAMP.

  1. 6bytes, 4bytes, 13bytes

  2. 4bytes, 3bytes, 11bytes

  3. 4bytes, 3bytes, 10bytes

  4. 5bytes, 3bytes, 11bytes


Correct Option: C

what are the various locking levels available in DB2?

  1. Index, Page,Table

  2. Page, Table, Tablesapce

  3. Page,Index,Tablespace

  4. None of the above


Correct Option: B

what is the COBOL picture clause of the following DB2 data types:DATE, TIME, TIMESTAMP

  1. PIC X(8), PIC X(8), PIC X(26)

  2. PIC X(12), PIC X(8), PIC X(28)

  3. PIC X(10), PIC X(8), PIC X(26)

  4. None of the above


Correct Option: C

Where can program checkpoints be stored for use in a restart?

  1. SYSCHK DD statement

  2. CHCKPOINT DD statement

  3. CHKOUT DD statement

  4. CHECK or DD statement


Correct Option: A

Which DD parameters are required ?

  1. Dsname, SPACE, UNIT

  2. Dsname, SPACE, RECFM

  3. Dsname, DISP, DCB, SPACE

  4. All parameters & Keywords are optional


Correct Option: D

AI Explanation

To answer this question, we need to understand the parameters and keywords used in DD statements.

DD statements are used in JCL (Job Control Language) to define and describe the datasets that a job will use. These statements provide information such as the dataset name (Dsname), allocation parameters (SPACE), disposition (DISP), and organization (DCB).

Let's go through each option to understand which parameters are required:

Option A) Dsname, SPACE, UNIT - This option is incorrect because it does not include the required DISP and DCB parameters.

Option B) Dsname, SPACE, RECFM - This option is incorrect because it also does not include the DISP and DCB parameters.

Option C) Dsname, DISP, DCB, SPACE - This option is incorrect because it includes all the required parameters.

Option D) All parameters & Keywords are optional - This option is correct because all parameters and keywords in a DD statement are optional. However, at least one parameter is required in order to define a dataset.

Therefore, the correct answer is option D) All parameters & Keywords are optional. This option is correct because while all parameters are optional, at least one parameter is required to define a dataset.

What statement can be used to send data to another MVS JES3 node ?

  1. CONNECT

  2. XMIT

  3. LINK

  4. TRANSMIT


Correct Option: B

What is the function of //CNTL statement ?

  1. Delimits the PROC control statements

  2. Identifies the control card library

  3. Marks the beginning of one or more program control statements

  4. None of the above


Correct Option: C

How can a JES3 operator command be entered through the jobstream?

  1. Through the OPERATOR statement

  2. Through the console statement

  3. Through the COMMAND statement

  4. Through the //** statement


Correct Option: D

In SMS datasets, what is the function of the DD MGMTCLAS keyword?

  1. Lookup a storage profile from the class library

  2. Specify a management class for a new dataset

  3. Alters the default storage profile for the dataset

  4. Begin a storage class definition block


Correct Option: B

What is the purpose of the DD KEYLEN parameter?

  1. Specify the length of a data set key in bytes

  2. Override the key length of an SMS defined VSAM dataset

  3. Override the key length specified in the dataset label

  4. All of the above


Correct Option: D

What is the maximum size of a 01 level item in COBOL II?

  1. 16667899

  2. 16777215

  3. 25879654

  4. 158742636


Correct Option: B

AI Explanation

To answer this question, we need to understand the concept of COBOL II and the maximum size of a 01 level item.

In COBOL II, the maximum size of a 01 level item is determined by the maximum value that can be represented by a PIC X type. In this case, the PIC X type is used to represent alphanumeric characters.

The maximum size of a PIC X type is determined by the maximum value that can be represented by a binary number with all bits set to 1. In other words, it is determined by the maximum value that can be represented by an 8-bit binary number.

An 8-bit binary number can represent values from 0 to 2^8 - 1, which is 255. However, since COBOL uses a packed decimal format to store alphanumeric characters, each character takes up half a byte or 4 bits. Therefore, the maximum size of a PIC X type in COBOL II is 255/2, which is 127.

Since none of the options provided match the correct answer, it seems that there may be an error in the options. However, based on the information provided, none of the options can be considered correct.

Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?

  1. In non-CICS environment, it is possible

  2. In CICS, this is not possible

  3. Both of above

  4. None of above


Correct Option: A

What is the Physical storage length of each of the following DB2 data types:DATE, TIME, TIMESTAMP.

  1. 6bytes, 4bytes, 13bytes

  2. 4bytes, 3bytes, 11bytes

  3. 4bytes, 3bytes, 10bytes

  4. 5bytes, 3bytes, 11bytes


Correct Option: C

what are the various locking levels available in DB2?

  1. Index, Page,Table

  2. Page, Table, Tablesapce

  3. Page,Index,Tablespace

  4. None of the above


Correct Option: B

what is the COBOL picture clause of the following DB2 data types:DATE, TIME, TIMESTAMP

  1. PIC X(8), PIC X(8), PIC X(26)

  2. PIC X(12), PIC X(8), PIC X(28)

  3. PIC X(10), PIC X(8), PIC X(26)

  4. None of the above


Correct Option: C

Where can program checkpoints be stored for use in a restart?

  1. SYSCHK DD statement

  2. CHCKPOINT DD statement

  3. CHKOUT DD statement

  4. CHECK or DD statement


Correct Option: A

AI Explanation

To answer this question, you need to have knowledge of mainframe programming and the different methods for storing program checkpoints. Let's go through each option to understand why it is correct or incorrect:

Option A) SYSCHK DD statement - This option is correct because the SYSCHK DD statement is used to specify the name and location of the checkpoint dataset. Checkpoint data is stored in this dataset and can be used for program restarts.

Option B) CHCKPOINT DD statement - This option is incorrect because there is no standard DD statement named CHCKPOINT for storing program checkpoints.

Option C) CHKOUT DD statement - This option is incorrect because there is no standard DD statement named CHKOUT for storing program checkpoints.

Option D) CHECK or DD statement - This option is incorrect because there is no standard DD statement named CHECK for storing program checkpoints.

The correct answer is A) SYSCHK DD statement. This option is correct because it is the standard method for storing program checkpoints.

Which DD parameters are required ?

  1. Dsname, SPACE, UNIT

  2. Dsname, SPACE, RECFM

  3. Dsname, DISP, DCB, SPACE

  4. All parameters & Keywords are optional


Correct Option: D

While doing a mass delete using a generic key, how can you determine the number of records deleted? (CICS)

  1. By using the NUMREC(data-area) option with the generic key.

  2. By using the NUMB(data-area) option with the generic key.

  3. By using the NUMBER(data-area) option with the generic key.

  4. None of the above


Correct Option: A

What does the following code do? "EXECIO * DISKR INDD (STEM SRCLINE. FINIS"

  1. Read one record from INDD and store in in SRCLINE stack.

  2. Read all the records from INDD and store in in SRCLINE stack.

  3. Write one record from INDD and store in in SRCLINE stack.

  4. Write all the records from INDD and store in in SRCLINE stack.


Correct Option: B

EXIT will terminate and leave a REXX exec unconditionally and does it have the option to return a value?

  1. Always returns a value.

  2. Never returns a value.

  3. Returns when RC is coded

  4. I am skipping this!!


Correct Option: C
- Hide questions