How do you reference the following file formats from COBOL programs:


Fixed Block File – Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK CONTAINS 0 .


Fixed Unblocked – Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, do not use BLOCK CONTAINS


Variable Block File – Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, BLOCK CONTAINS 0. Do not code the 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4


Variable Unblocked – Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, do not use BLOCK CONTAINS. Do not code 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4.


ESDS VSAM file – Use ORGANISATION IS SEQUENTIAL.


KSDS VSAM file – Use ORGANISATION IS INDEXED, RECORD KEY IS, ALTERNATE RECORD KEY IS


RRDS File – Use ORGANISATION IS RELATIVE, RELATIVE KEY IS


Printer File – Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F,


BLOCK CONTAINS 0. (Use RECFM=FBA in JCL DCB).

Category: Mainframe Interview Questions.