how to code in cobol while using variable block file?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

687


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1014


How do you differentiate between cobol and cobol-ii?

646


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

1831


What is the difference between Global and External Variables?

654






Which Search verb is equivalent to PERFORM…VARYING?

677


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

701


How do we get current date from system with century in COBOL?

792


In COBOL programming, what is PERFORM? What is VARYING?

665


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2088


What is amode(24)?

678


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1515


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

807


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

659


Write a program to enter and display the names of students in a class using the occurs clause.

642