Mainframe Programming - 4 Flashcards

1
Q

Which is the correct select statement?

  EMPFILE SELECT ASSIGN TO EMPFILEO. 
  SELECT ASSIGN EMPFILE TO EMPFILEO . 
  SELECT EMPFILE TO EMPFILEO ASSIGN. 
  SELECT EMPFILE ASSIGN TO EMPFILEO. 
  EMPFILEO SELECT ASSIGN TO EMPFILE.
A

SELECT EMPFILE ASSIGN TO EMPFILEO.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In JCL what does the DD statement help define?

the File Record limit has been reached
The record we just loaded is equal to the previous record
The actual data set on the disk and file name
The data driver used to access our modules

A

The actual data set on the disk and file name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What file status is “RECORD NOT FOUND”?

  File status 00 
  File status 10 
  File status 22 
  File status 23 
  File status 88
A

File status 23

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the link between the COBOL program and the computer input-out devices the program uses?

  Procedure Division 
  Environment Division 
  Working-Storage Section. 
  Identification Division 
  ZConfiguration Section.
A

Environment Division

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following correctly describes the blocksize statement?

number of characters in a record
number of records in a block
number of blocks in a record
the number of characters in a variable

A

number of records in a block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Files are classified into types. Find the INCORRECT file type.

Flexible Organization
Sequential Organization
Index Sequential Organization
Relative Organization

A

Flexible Organization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The OPEN command opens 4 modes, which is the INCORRECT one here?

  input 
  output 
  extend 
  I-O 
  control
A

control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Where is the FD of the file defined?

  Identification Division 
  Procedure division 
  Working-Storage Section. 
  Environment Division. 
  File Section
A

File Section

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which file type is conceptually made up of two files, a data file an index file?

Flexible Organization
Sequential Organization
Index Sequential Organization
Relative Oranization

A

Index Sequential Organization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which clause is used to check the end of the data on a READ statement?

  at finish 
  at end 
  at done 
  at stop 
  at data
A

at end

How well did you know this?
1
Not at all
2
3
4
5
Perfectly