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

File status must be checked both while opening and reading the file or only while reading the file?

2 Answers  


) How do u handle errors in BMS macro?

1 Answers   IBM,


Differentiate between structured cobol programming and object-oriented cobol programming.

1 Answers  


What is the difference between Call and a Link?

1 Answers  


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1 Answers   TryTechnicals Pvt Ltd,


can we redefine 77 level item is it possible

4 Answers   HCL,


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

1 Answers   IBM,


wht happens if we dnt give scope terminator ?

4 Answers   TCS,


what is rediffine clause?in what situation it can use?give me real time example?

1 Answers   IBM,


Explain fixed length record in cobol? with suitable example

1 Answers   IBM,


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1 Answers  


if a dataset is already created with fixed length but after that i want to change fixed length to variable length then how is it possible

3 Answers   IBM,


Categories