0

mainframe Online Quiz - 117

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

Can I specify dummy VSAM dataset with AMP = 'AMORG' in a JCL?

  1. True

  2. False


Correct Option: A
  1. Bldindex

  2. non-VSAM datasets

  3. VSAM base cluster

  4. Define path


Correct Option: C

DEFINE ALIAS command creates an alias for

  1. Bldindex

  2. non-VSAM datasets

  3. VSAM base cluster

  4. Define path


Correct Option: B
  1. SHAREOPTION (1,3)

  2. SHAREOPTION (2,3)

  3. SHAREOPTION (3,1)

  4. SHAREOPTION (3,2)


Correct Option: B
  1. Through the USER parameter

  2. Through the USER and PASSWORD parameter

  3. Through the RACF parameter

  4. By notifying the console operation to override authority


Correct Option: B

Many JCL statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

  1. Linkage variables

  2. Parameters

  3. Control libraries

  4. Includes


Correct Option: B

AI Explanation

To answer this question, you need to understand the purpose of these values in JCL statements. Let's go through each option to understand why it is correct or incorrect:

Option A) Linkage variables - This option is incorrect because linkage variables are used in programming languages like COBOL to pass data between programs, not in JCL statements.

Option B) Parameters - This option is correct because JCL statements often contain specific values, known as parameters, that are used to direct and control the execution of the statement. These parameters can specify things like program names, dataset names, and other instructions for the system.

Option C) Control libraries - This option is incorrect because control libraries refer to datasets that contain control statements or programs used by the system during job execution, rather than specific values in JCL statements.

Option D) Includes - This option is incorrect because includes are used in programming languages like COBOL to include external code or copybooks, not in JCL statements.

The correct answer is B) Parameters. This option is correct because JCL statements often contain specific values, known as parameters, that are used to direct and control the execution of the statement.

Can an individual step be restricted from using all the job's allowed CPU time?

  1. Yes

  2. No

  3. Only in catalogued procedures

  4. Through the STEPTIME parameter


Correct Option: A

AI Explanation

To answer this question, you need to understand how job execution and CPU time restrictions work.

Option A) Yes - This option is correct. An individual step can be restricted from using all the job's allowed CPU time. In mainframe environments, it is possible to set CPU time limits for individual steps within a job. This can be done using the TIME parameter in the JCL (Job Control Language) or by using system commands during job execution.

Option B) No - This option is incorrect. An individual step can indeed be restricted from using all the job's allowed CPU time.

Option C) Only in catalogued procedures - This option is incorrect. The ability to restrict CPU time is not limited to catalogued procedures. It can be applied to any individual step within a job.

Option D) Through the STEPTIME parameter - This option is incorrect. Although the STEPTIME parameter can be used to specify the maximum time that a step is allowed to run, it does not directly restrict the CPU time usage of the step.

The correct answer is A) Yes. An individual step can be restricted from using all the job's allowed CPU time by setting CPU time limits for that particular step.

What is the purpose of DD DUMMY statement?

  1. Marks a deleted DD statement

  2. Begins an interpreted command stream

  3. Specifies no space allocation & no disposition processing

  4. Suppress command processing


Correct Option: D

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Marks a deleted DD statement - This option is incorrect. The purpose of the DD DUMMY statement is not to mark a deleted DD statement.

Option B) Begins an interpreted command stream - This option is incorrect. The DD DUMMY statement does not begin an interpreted command stream.

Option C) Specifies no space allocation & no disposition processing - This option is incorrect. While the DD DUMMY statement does not allocate space, it does not specify no disposition processing.

Option D) Suppress command processing - This option is correct. The purpose of the DD DUMMY statement is to suppress command processing. It is typically used in JCL (Job Control Language) to define a dummy data set that does not contain any actual data, but is required to satisfy the syntax of the JCL.

The correct answer is D) Suppress command processing. This option is correct because the DD DUMMY statement is used to suppress command processing.

I am using internal sort in my cobol program . Is there any way to test the return code of operation???

  1. No , we can't check the return code for internal sort however for external sort it can be done

  2. YES,by using SORT-RETURN special register

  3. YES, we can test via Run jcl.

  4. YES,by checking in listing of the proram


Correct Option: B
  1. O/P PROCEDUE and INPUT PROCEDURE both

  2. O/P PROCEDUE but not INPUT PROCEDURE

  3. INPUT PROCEDURE but not O/P PROCEDUE

  4. can't use both of them


Correct Option: B

which command cerates an alias for the VSAM base cluster

  1. DEFINE CLUSTER

  2. DEFINE ALIAS

  3. DEFINE PATH

  4. DEFINE BASE


Correct Option: C
  1. SYSPRINT and SYSOUT

  2. SYSIN and SYSOUT

  3. SYSPRINT and SYSIN

  4. The question is wrong


Correct Option: C
  1. YES

  2. NO, any condition along with equal can be checked

  3. Except Equal condition any condition can be chencked

  4. It Depends on the use of Search statement on perticular scenario


Correct Option: A

MOVE ZEROS TO TOTAL-OUT, TOTAL-OUT may have an __________ picture clause.

  1. alphanumeric

  2. numeric

  3. alphanumeric and numeric

  4. none of the above


Correct Option: C

WS-TAX-IN PIC 9(4) VALUE '1234'. WS-TAX-OUT PIC 9(3). MOVE WS-TAX-IN TO WS-TAX-OUT. What is the value WS-TAX-OUT contain?

  1. 234

  2. 123

  3. 1234

  4. 0


Correct Option: A
- Hide questions