Tag: mainframe

Questions Related to mainframe

What statement marks the end of instream or catalogued procedure?

  1. STREAM

  2. SET

  3. PROC

  4. PEND


Correct Option: D

AI Explanation

To answer this question, you need to understand the syntax and structure of programming languages.

The correct answer is D) PEND. This statement marks the end of an instream or catalogued procedure.

In some programming languages, such as IBM's Job Control Language (JCL), the PEND statement is used to indicate the end of a procedure. It is usually placed at the end of the procedure to signal that there are no more statements to be executed within that procedure.

Options A) STREAM, B) SET, and C) PROC are not typically used to mark the end of an instream or catalogued procedure. STREAM is often used to specify input/output streams in some programming languages. SET is commonly used to assign values to variables. PROC is usually used to define or invoke a procedure.

Therefore, the correct statement that marks the end of an instream or catalogued procedure is option D) PEND.

How can an instream dataset be terminated

  1. //

  2. //*

  3. /*

  4. None of the above


Correct Option: C

What is the maximum size of single line of JCL?

  1. 71

  2. 60

  3. 55

  4. 80


Correct Option: A
  1. Through RC

  2. Through CODE

  3. Through COND

  4. Through RETURNCD


Correct Option: A
  1. Yes

  2. No

  3. only for uncatalogued datasets

  4. Only for catalogued dataset


Correct Option: C

which of the following is used to comment out a statement?

  1. //

  2. /*

  3. /+

  4. +/


Correct Option: B

Program Name:

  1. Can have Letters, 0 - 9, Hyphen and cannot start or end with Hyphen, Maximum of 30 characters

  2. Can have Letters, 0 - 9 and should start with Letter, Maximum of 30 characters

  3. Can have Letters, 0 - 9 and should start with Letter, Maximum of 8 characters

  4. Can have Letters, 0 - 9, Hyphen and cannot start or end with Hyphen, Maximum of 8 characters


Correct Option: C
  1. contain at least one character, but not more than 30 character

  2. contain at least one alphabetic character

  3. Can begin or end with a hyphen

  4. Names are not case-sensitive: TotalPay is the same as totalpay, Totalpay or TOTALPAY

  5. constructed from the Letters, 0 - 9, and hyphen


Correct Option: A,B,D,E