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 u handle errors in BMS macro?
What is the LINKAGE SECTION used in COBOL?
In COBOL programming, what is PERFORM? What is VARYING?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
A table has two indexes defined. Which one will be used by the SEARCH?
What is the difference between binary search and sequential search?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
In COBOL, what is the different between index and subscript?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Explain what you understand by passing by value.
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What are the pertinent COBOL commands?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What are the different data types in cobol?
What are the pertinent COBOL