Tag: programming languages

Questions Related to programming languages

  1. Specify RESTART = STEPNAME in the JOB step.

  2. Specify RESTART = Y in the JOB step.

  3. Specify RESTART = N in the JOB step.

  4. None of the above

  5. All of the above


Correct Option: A
Explanation:

To solve this question, the user needs to know about how to restart an abnormally terminated job.

Option A: Specify RESTART = STEPNAME in the JOB step.

This option is partially correct. In order to restart an abnormally terminated job, the RESTART parameter must be specified in the JOB statement. However, the value for RESTART should be the name of the step where the job should resume, not "STEPNAME".

Option B: Specify RESTART = Y in the JOB step.

This option is incorrect. There is no value of "Y" for the RESTART parameter. The valid values are the step name where the job should restart or "RESTART=NO" to prevent a job from being restarted.

Option C: Specify RESTART = N in the JOB step.

This option is incorrect. "N" is not a valid value for the RESTART parameter. The valid values are the step name where the job should restart or "RESTART=NO" to prevent a job from being restarted.

Option D: None of the above.

This option is incorrect. Option A is partially correct, but the other options are incorrect.

Option E: All of the above.

This option is incorrect. Option A is partially correct, but the other options are incorrect.

Therefore, the correct answer is:

The Answer is: A. Specify RESTART = STEPNAME in the JOB step.

Errors in XML documents will not stop your XML applications

  1. True

  2. False


Correct Option: B
  1. Name

  2. Dsname

  3. Label

  4. File

  5. None of the above


Correct Option: B
Explanation:

To answer this question, the user needs to know about DD statements and their purpose. DD (Dataset Definition) statements are used to define and allocate datasets in JCL (Job Control Language) for use by a job step.

The correct answer is option B.

Explanation:

The DD statement used to supply the name of a dataset is the Dsname parameter. This parameter specifies the name of the dataset being allocated or accessed by a job step.

Option A (Name) is not a valid parameter in a DD statement.

Option C (Label) is used to specify a label for a dataset.

Option D (File) is also not a valid parameter in a DD statement.

Option E (None of the above) is incorrect because option B (Dsname) is the correct answer.

Therefore, the answer is: B.

How can a job send a status message to a TSO user at the completion of a job?

  1. STATUS

  2. NOTIFY

  3. ENDMSG

  4. USER

  5. None of the above


Correct Option: B
  1. They can be used to override parameters on the DD statement.

  2. They are used in cataloged and In-stream procedures.

  3. They are used to assign values to commonly used JCL parameters.

  4. None of the above

  5. All of the above


Correct Option: E
  1. IEFBR14

  2. IEBCOPY

  3. IEBGENER

  4. IEBCOMPR

  5. None of the above


Correct Option: C
  1. JOBLIB

  2. PGM

  3. STEPLIB

  4. Any of the above


Correct Option: C
Explanation:

To solve this question, the user needs to know about JCL (Job Control Language) and the different parameters that can be used to customize a job step.

The JOBLIB and STEPLIB parameters are used to specify the location of program libraries that contain the executable programs required for a job. The PGM parameter is used to specify the name of the program to be executed for a particular job step.

Option A - JOBLIB: The JOBLIB parameter is used to specify the location of program libraries that contain the executable programs required for the entire job. This parameter is not specific to a particular job step.

Option B - STEPLIB: The STEPLIB parameter is used to specify the location of program libraries that contain the executable programs required for a particular job step. This option is correct as it provides a way to specify the location of the program specific to a job step.

Option C - Any of the above: This option is incorrect as the JOBLIB parameter cannot be used to specify the location of the program for a specific job step.

Option D - PGM: The PGM parameter is used to specify the name of the program to be executed for a particular job step. This parameter does not specify the location of the program.

Therefore, the correct answer is:

The Answer is: B. STEPLIB

Which of the following is true about the SECONDARY Sub parameter used in the SPACE parameter?

  1. Specifies storage space for recording of name and location of partitioned datasets

  2. Specifies additional storage space if the originally specified space is insufficient

  3. Specifies storage space at the time the dataset is created

  4. Specifies the space required in cylinder


Correct Option: B
Explanation:

To answer this question, the user needs to know about the SPACE parameter used in JCL and its sub-parameters.

Now, let's go through each option and explain why it is right or wrong:

A. Specifies storage space for recording of name and location of partitioned datasets: This option is incorrect. The SECONDARY sub-parameter specifies the amount of additional space required if the originally specified space is insufficient. It does not relate to the recording of name and location of partitioned datasets.

B. Specifies additional storage space if the originally specified space is insufficient: This option is correct. The SECONDARY sub-parameter specifies the amount of additional space required if the originally specified space is insufficient.

C. Specifies storage space at the time the dataset is created: This option is incorrect. The SPACE parameter specifies the primary space allocation required for a dataset at the time of creation. The SECONDARY sub-parameter specifies the amount of additional space required if the originally specified space is insufficient.

D. Specifies the space required in cylinder: This option is incorrect. The SPACE parameter specifies the primary space allocation in terms of tracks, cylinders, or blocks for a dataset. The SECONDARY sub-parameter specifies the amount of additional space required if the originally specified space is insufficient.

Therefore, the correct answer is:

The Answer is: B