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 u code after getting data?

1795


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

897


Write a cobol program making use of the redefine clause.

923


What are the rules of the move verb?

945


What is the difference between Global and External Variables?

922


What are different data types in cobol?

908


What is perform what is varying?

916


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

2117


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

946


What is rmode(any) ?

899


For rewrite, why is it mandatory that file needs to be opened?

836


When is inspect verb is used in cobol?

921


Mention the guidelines to write a structured cobol program?

824


Can we redefine the field of x(200) to less than 200?

1097


What is report-item in COBOL?

894