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 |
How can you add a particular field in copybook?
Can we redefine the field of x(200) to less than 200?
How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?
How do define dynamic array in cobol.
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What is amode(31)
diffrence between z(2) and z9(2)
Difference between cobol and cobol-ii?
What is the point of the REPLACING option of a copy statement?
what is the minimum number of lines a Cobol program should have to successfully compile and run
11 Answers ABC, Societe Generale,
What are the differences between OS VS COBOL and VS COBOL II?
What is the use of LINKAGE SECTION?