how to code in cobol while using variable block file?



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

Post New Answer

More COBOL Interview Questions

how would you resolve sb37 and SE37?

2 Answers   Hewitt,


Explain the configuration section of a cobol program with examples of syntax.

0 Answers  


how many maximum no of variables can be declared in linkage section ?

2 Answers   HCL,


What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?

4 Answers  


How are the next sentence and continue different from each other?

0 Answers  






How To move a value to an array using move verb?

3 Answers   IBM,


Write the code to count the sum of n natural numbers.

0 Answers  


how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it

2 Answers  


A table has two indexes defined. Which one will be used by the SEARCH?

0 Answers  


tell me about examine inspect and evaluate ?

2 Answers   CTS,


what is the difference b/w level no.01 & level no.77?

3 Answers   HCL,


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

0 Answers  


Categories