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
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?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
How do you differentiate between cobol and cobol-ii?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the difference between Global and External Variables?
Which Search verb is equivalent to PERFORM…VARYING?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How do we get current date from system with century in COBOL?
In COBOL programming, what is PERFORM? What is VARYING?
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
What is amode(24)?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Differentiate between structured cobol programming and object-oriented cobol programming.
Write a program to enter and display the names of students in a class using the occurs clause.