0

mainframe Online Quiz - 33

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

Which PROCOPT should be used to INSERT or REPLACE a IMS Database?

  1. L

  2. IR

  3. I

  4. LS


Correct Option: D
  1. ENVIRONMENT SECTION

  2. LIBRARY SECTION

  3. ACTIVITY SECTION

  4. FILE SECTION


Correct Option: D

WHICH OF THE FOLLOWING ACTIVITIES ARE DEFINED IN ACTIVITY SECTION?

  1. JOB AND SORT

  2. JOB AND DEFINE

  3. SORT AND DEFINE

  4. FILE AND JOB


Correct Option: A

WHICH OF THE FOLLOWING RESTORES THE FIELD TO ITS INITIAL VALUE WHENEVER JOB OR SORT IS EXECUTED

  1. DEFINE

  2. RESET

  3. VALUE

  4. SET


Correct Option: B

AI Explanation

To answer this question, you need to understand the purpose of each option and how they affect the field value. Let's go through each option to understand why it is correct or incorrect:

Option A) DEFINE - This option is incorrect because the DEFINE statement is used to define a new field or variable with an initial value. It does not restore the field to its initial value whenever a job or sort is executed.

Option B) RESET - This option is correct because the RESET statement is used to restore the field to its initial value whenever a job or sort is executed. It allows you to reset the value of a field to its initial value, regardless of any modifications made to it during the execution of a job or sort.

Option C) VALUE - This option is incorrect because the VALUE statement is used to assign a specific value to a field or variable. It does not restore the field to its initial value whenever a job or sort is executed.

Option D) SET - This option is incorrect because the SET statement is used to assign a value to a field or variable. It does not specifically restore the field to its initial value whenever a job or sort is executed.

The correct answer is B) RESET. This option is correct because the RESET statement is used to restore the field to its initial value whenever a job or sort is executed.

WHICH OF THE FOLLWING IS A VALID JOB STATEMENT?

  1. JOB INPUT NULL

  2. JOB INPUT FILENAME

  3. JOB INPUT SQL

  4. ALL THE ABOVE


Correct Option: D
  1. ENVIRONMENT SECTION

  2. ACTIVITY SETCION

  3. LIBRARY SECTION

  4. NONE OF THE ABOVE


Correct Option: C

WHICH OF THE FOLLOWING IS NOT USED IN EASYTRIEVE AS IN COBOL?

  1. CALL STATEMENT

  2. ADD STATEMENT

  3. LEVEL NUMBERS

  4. IF STATEMENT


Correct Option: C
  1. FILE INFILE FB(80 800)

  2. FILE INFILE VS

  3. FILE INFILE VB(100 504)

  4. NONE OF THE ABOVE


Correct Option: B
Explanation:

To solve this question, the user needs to have knowledge of VSAM files and how they are defined in JCL.

Option A: FILE INFILE FB(80 800) This option represents a flat file. The FB indicates that the file is fixed blocked, and the numbers in the parentheses specify the record length (80) and the block size (800). This is not a VSAM file.

Option B: FILE INFILE VS This option represents a VSAM file. The "VS" indicates that it is a VSAM file. However, this option is incomplete since it does not specify the file organization (KSDS, ESDS, or RRDS) and the access method (ESDS or RRDS).

Option C: FILE INFILE VB(100 504) This option represents a variable blocked file. The VB indicates that the file is variable blocked, and the numbers in the parentheses specify the maximum record length (100) and the block size (504). This is not a VSAM file.

Therefore, the correct answer is:

The Answer is: B

  1. FILE IS A FIXED BLOCK FILE WITH RECORD LENGTH 150 AND BLOCK SIZE 0

  2. FILE IS A FIXED BLOCK FILE WITH RECORD LENGTH 0 AND BLOCK SIZE 150

  3. FILE IS A VSAM FILE WITH RECORD LENGTH 150 AND BLOCK SIZE 0

  4. FILE IS A VARIABLE BLOCK FILE WITH RECORD LENGTH 150 AND BLOCK SIZE 0


Correct Option: A

THE FOLLOWING IS AN EXAMPLE OF JOB INPUT (FILEN KEY(KEYNB, KEYNA) + FILE1 KEY(KEY1B, KEY1A) + FILE2 KEY(KEY2B, KEY2A))

  1. SKIPSEQUENTIAL FILE PROCESSING

  2. RANDOM FILE PROCESSING

  3. SYNCHRONIZED FILE PROCESSING

  4. NONE OF THE ABOVE


Correct Option: C
  1. TABLE INFORMATION

  2. INDEX

  3. FILE INFORMATION

  4. NONE OF THE ABOVE


Correct Option: A

WHICH OF THE FOLLOWING IS USED IN EASYTRIEVE INSTEAD OF EVALUATE IN COBOL

  1. SELECT

  2. CASE

  3. ESTIMATE

  4. SEARCH


Correct Option: B
- Hide questions