There is lot variables used in COBOL program.
I would like to find out the input file name of the particular variable belongs to.
For example in my program there 2 input files and 1 output file.
There are 15 copybooks used.
If I want to find out the input file “From where the variable is coming from” I’m unable to find, perhaps I can able to find out the copy book of the variable. But I‘m unable to find the input file name because none of the LRECL of copybooks is matched with LRECL of input file.
Could anyone tell me how do I find out the variable and the corresponding input file?
Thanks in advance.
But I‘m unable to find the input file name because none of the LRECL of copybooks is matched with LRECL of input file.
I feel the LRECL of flat file and the corresponding copybook are not matching as the copy book may be a part of the total file structure. The remaining will be continued at the end of the copybook. I have viewed such cases in some programs. Siva deeply investigate the program to find the answer.
Joined: 22 Apr 2006 Posts: 6258 Location: Mumbai, India
I have viewed such cases in some programs.
This is a 'usual situation' and in use since very long.
You should be having some 'Base-line' PDS for the copy-books used in program. Use search option of ISPF (3.14) for the string in that PDS, it'll list all those copy-books in which the desired string is used. Check back if that copy-book is present is in Your program, if yes, You got what You want else check for next copy-book.
This is just an alternate way, however, did you try Jack's reply?