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 to convert the recors form vsam file to db2 table tru file aid
What is static and dynamic call in cobol?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What kind of error is trapped by on size error option?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is the local-storage section?
For rewrite, why is it mandatory that file needs to be opened?
What do you understand by psb and acb?
What is the problem of ordered sequential files access?
Difference between cobol and cobol-ii?
What are 77 levels used for?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Write down the divisions of cobol program?
what is amode(24), amode(31), rmode(24) and rmode(any)?