Tag: mainframe

Questions Related to mainframe

what are the access mode requirements of Start statement?

  1. Sequential

  2. Dynamic

  3. Relative

  4. Index

  5. All the above


Correct Option: B
  1. Record Not Found

  2. At End

  3. Duplicate Record

  4. End Of File

  5. At Spaces


Correct Option: B
Explanation:

To answer this question, the user needs to have knowledge of COBOL file processing clauses.

Option A: Record Not Found - This clause is used to detect if there are no more records beyond the point where a READ statement is executed. It is not an alternative to checking for file status = 10.

Option B: At End - This clause is used to detect the end of a file. It is a valid alternative to checking for file status = 10.

Option C: Duplicate Record - This clause is used to detect if there are duplicate records in a file. It is not an alternative to checking for file status = 10.

Option D: End Of File - This clause is used to detect the end of a file. It is a valid alternative to checking for file status = 10.

Option E: At Spaces - This clause is used to detect if a record contains only spaces. It is not an alternative to checking for file status = 10.

Therefore, the correct answer is:

The Answer is: B. At End

  1. 01 ARRAYS. 05 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX

  2. 01 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX

  3. 01 ARRAYS. 05 ARRAY1 PIC X(9) OCCURS INDEXE BY 10 TIMES

  4. 01 ARRAYS. 88 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX


Correct Option: B
  1. Identification

  2. Environment

  3. Data

  4. Working


Correct Option: D

What kind of search is used in SEARCH ALL?

  1. Serial Search

  2. Binary search

  3. Tree Search

  4. SQL Search


Correct Option: B

What type of file cannot be accessed through CICS?

  1. ISAM

  2. VSAM

  3. QSAM

  4. GSAM


Correct Option: C
  1. Clause

  2. Size

  3. Usage

  4. All the above


Correct Option: D