can we read in input the file with a variable length ?
please , how ..could you help me ?

Answer Posted / anjiii

yes we can read input file with variable length.

while declaring a file in a file section, have two file
records declared at zero level... ex.

FD
01 Var-data-1 pic x().
05
05
.
.

01 Var-data-2 pic x().

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the utilization of copybook in cobol? Could we utilize a similar copybook?

720


Have you used comp and comp-3 in your project? And how?

2010


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8167


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1232


What is the difference between PIC 9.99 and PIC9v99?

783






In COBOL, what is the different between index and subscript?

763


What is the difference between Global and External Variables?

666


Which division and paragraphs are mandatory for a COBOL program?

712


what is search and searchall?what is the diffrence between them?give an best example?

5563


Difference between cobol and cobol-ii?

714


) what is the difference between AID and HANDLE AID?

1637


Are you comfortable in cobol or jcl?

643


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8660


How many bytes S(8) comp field occupy and its maximum value?

1634


Name some of the examples of COBOl 11?

2688