When using the SORT utility in JCL, the _______ parameter specifies the order in which records are sorted.

  • FIELD
  • KEY
  • ORDER
  • SORT
In the SORT utility, the ORDER parameter specifies the sorting order.

The COND parameter allows you to specify conditions based on the _______ status.

  • File
  • Job
  • Program
  • Step
The COND parameter is used to specify conditions based on the step status

The ____ statement defines the layout of the output records in a SORT step of the JCL SORT utility.

  • FORMAT
  • LAYOUT
  • OUTFIL
  • RECORD
The OUTFIL statement defines the layout of output records in a SORT step

In a SORT step using JCL, which statement specifies the input dataset to be sorted?

  • FROMFILE
  • INFILE
  • INPUT
  • SORTFILE
The INPUT statement in a SORT step specifies the input dataset to be sorted

When using a GDG dataset, which parameter in the DD statement is used to specify the generation number?

  • GDN
  • GEN
  • GENNUM
  • GENS
In the DD statement, the GENS parameter is used to specify the generation number when using a GDG dataset

How does IDCAMS handle duplicate records in a VSAM dataset during insertion?

  • Generates an error
  • Ignored, no action taken
  • Overwrites the existing record
  • Rejects them
IDCAMS overwrites the existing record if a duplicate is encountered

Explain a real-world scenario where the IEBDG utility is used to generate test data for mainframe applications.

  • Generating sample input data for batch processing programs
  • Creating test datasets for application testing
  • Generating mock customer data for performance testing
  • Creating dummy records for stress testing
Option 2 is correct. The IEBDG utility is commonly used to create test datasets for mainframe application testing purposes.

In JCL, "_______" dependencies are defined at the job level and apply to all steps within that job.

  • GLOBAL
  • INTRA
  • JOB-WIDE
  • STEP
"JOB-WIDE" dependencies are defined at the job level

You have a JCL job step with both IF and ELSE statements. Describe a real-world scenario where this setup would be useful.

  • Handling Variable Input Conditions
  • Managing Job Abends
  • Managing Multiple Output Paths
  • Streamlining Conditional Processing
In scenarios where a job can take different paths based on conditions, using IF and ELSE statements helps manage multiple output paths efficiently. This is useful for conditional processing based on variable input conditions.

Explain the relationship between job priority and job class in JCL job scheduling.

  • Higher job class gets higher priority
  • Lower job class gets higher priority
  • Priority and job class are unrelated
  • Priority is independent of job class
In JCL, higher job class receives a higher scheduling priority