can we read in input the file with a variable length ?
please , how ..could you help me ?
Answer Posted / kotagiriramachandra
we can read an input rec of variable length.For that u need
to declare
01 main-rec
05 rec-data pic x(m) <== m should be max length of rec
specified in file declaration(avg length, max length).
05 rec-len pic s9(4) comp
precedure div...
.
.
.
read infile at end...
else move in-rec into main-rec.
I think in this way we can do.If i'm wrong plz let me know..
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
example for sub strings ? and refernce modifications whit output pls
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What are the different rules of SORT operation?
What is difference between static and dynamic call in cobol?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
Explain the configuration section of a cobol program with examples of syntax.
What do you understand by psb and acb?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What are the access modes of START statement?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What are the pertinent COBOL commands?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What are 77 levels used for?
In which area will you utilize 88 level items in cobol?
explain sorting techniques in cobol program?