how to code in cobol while using variable block file?



how to code in cobol while using variable block file?..

Answer / ravi

INDENTIFICATION DIVISION.
PROGRAM-ID. PGM1.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. IBM
OBJECT-COMPUTER. IBM
INPUT-OUTPUT SECTION.
FILE CONTROL.
SELECT INPUT-VB-FILE ASSIGN TO DISK.
DATA DIVISION.
FILE-SECTION.
FD INPUT-VB-FILE
01 INPUT-VB-FILE
RECORDING MODE IS V
RECORD CONTAINS 1000 CHARACTERS <---This should be the max
size of the record in whole file.
BLOCK CONTAINS 0 RECORDS.

Is This Answer Correct ?    2 Yes 8 No

Post New Answer

More COBOL Interview Questions

Are you comfortable in cobol or jcl?

0 Answers  


What is redefines clause in COBOL?

0 Answers   B-Ways TecnoSoft,


how you will define variables length in cobol.

3 Answers   Temenos,


How to pass return codes from cobol to jcl?

5 Answers  


How to use the same cobol program in Batch and CICS onlines ? Please expalin with an example. Thanks in advance.

1 Answers  






How to Write the RESTART Logic Using COBOL?

4 Answers   GalaxE, L&T, Syntel, TCS,


Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?

1 Answers  


How can you get the ksds file records into your cobol program?

0 Answers  


how we separate the cobol cics statements from cobol&cics programming?

1 Answers   Valtech,


why do u need inspect verb?

3 Answers   Patni,


What is file status 92?

3 Answers  


What the difference is between continue and next sentence?

0 Answers  


Categories