Tag: mainframe

Questions Related to mainframe

By using _________ statement, data can be sorted in a file between headers and trailers.

  1. DATASORT

  2. SUBSET

  3. both a and b

  4. None of the above


Correct Option: A

How to remove the last record from the i/p file?

  1. SUBSET FROM(IN1) TO(OUT1) INPUT REMOVE LAST = 1

  2. SUBSET FROM(IN1) TO(OUT1) INPUT REMOVE LAST(1)

  3. SUBSET FROM(IN1) TO(OUT1) INPUT REMOVE TRAILER

  4. All of the above


Correct Option: B,C

Find the i/p file records as below: Student A - Max = 100 Min = 60 Student B - Max = 60 Min = 50 Student C - Max = 80 Min = 75 How to format the file to the following o/p data? Student A - Maximum = 100 Minimum = 60 Student B - Maximum = 60 Minimum = 50 Student C - Maximum = 80 Minimum = 75

  1. OPTION COPY INREC FINDREP=(INOUT=(C'Max',C'Maximum',C'Min',C'Minimum')

  2. OPTION COPY INREC FINDREP=(C'Max',C'Maximum',C'Min',C'Minimum')

  3. Both a and b

  4. None of the above


Correct Option: A

Which of the following will enhance the efficiency of the jcl?

  1. INCLUDE COND = (10,3,CH,EQ,C'YES') SORT FIELDS = (1,5,CH,A)

  2. SORT FIELDS = (1,5,CH,A) INCLUDE COND = (10,3,CH,EQ,C'YES')

  3. Order doesn't matter

  4. INCLUDE COND = (10,3,CH,EQ,C'YES') SORT FIELDS = COPY


Correct Option: A
  1. Identify a library to be searched for programs named in the EXEC statement

  2. Identify a library containing executable job steps

  3. Override the system step library within a job stream

  4. All of the above


Correct Option: D
  1. Through the RC keyword

  2. Through the CODE keyword

  3. Through the COND keyword

  4. Through the RETURNCD keyword


Correct Option: C

What is concatenating?

  1. Overriding or adding procedures

  2. Logically connecting input datasets

  3. Overriding a called PROC dsname

  4. All of the above


Correct Option: B

How can values be passed from the job stream to an executable program?

  1. Through the PARM keyword

  2. Through the VALUE parameter

  3. Through the PGM parameter

  4. All of the above


Correct Option: A

Must tape dataset definitions include VOL=SER specifications?

  1. Yes

  2. No

  3. Only for uncataloged datasets

  4. Only for cataloged datasets


Correct Option: C