View previous topic :: View next topic
|
Author |
Message |
siva25
New User
Joined: 22 Jun 2007 Posts: 4 Location: bangalore
|
|
|
|
Hi
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. |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
Siva ur files may be of Variable length...Provide us more info to help u |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Use the compiler listing. It shows:
select stmt w/ddname file name
FD w/file name cpybk name
Cpybk w/variable names
Look at these in reverse order var > cpybk > fd > select. |
|
Back to top |
|
|
mftrigger
New User
Joined: 18 Feb 2006 Posts: 23 Location: chennai
|
|
|
|
Quote: |
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. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
mftrigger wrote: |
I have viewed such cases in some programs. |
Hi,
This is a 'usual situation' and in use since very long.
Siva,
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? |
|
Back to top |
|
|
|