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
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Have you used comp and comp-3 in your project? And how?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
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?
What is the difference between PIC 9.99 and PIC9v99?
In COBOL, what is the different between index and subscript?
What is the difference between Global and External Variables?
Which division and paragraphs are mandatory for a COBOL program?
what is search and searchall?what is the diffrence between them?give an best example?
Difference between cobol and cobol-ii?
) what is the difference between AID and HANDLE AID?
Are you comfortable in cobol or jcl?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How many bytes S(8) comp field occupy and its maximum value?
Name some of the examples of COBOl 11?