sriram1695 wrote:I do not want to use the COPY statement to get the Record Description into my program because the input file is going to have different record description according to the user.
? Have you though about the amount of effort needed to recreate a large chunk of the compiler-- as Mr. Boyo indicates, not a trivial task for an experienced developer, let alone a rank newbie -- versus writing, say, a dozen copybooks and passing a parameter indicates which is to be used?
The program works fine with the use of COPY statement. But everytime the layout changes I'll have to recompile the source code.
This. my child, has been true for the past half-century.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day