IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

I would like to find out the input file name of the particul


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
siva25

New User


Joined: 22 Jun 2007
Posts: 4
Location: bangalore

PostPosted: Fri Feb 29, 2008 1:18 pm
Reply with quote

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
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 218
Location: India

PostPosted: Fri Feb 29, 2008 2:35 pm
Reply with quote

Siva ur files may be of Variable length...Provide us more info to help u
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Feb 29, 2008 7:27 pm
Reply with quote

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
View user's profile Send private message
mftrigger

New User


Joined: 18 Feb 2006
Posts: 23
Location: chennai

PostPosted: Thu Mar 06, 2008 6:04 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Mar 07, 2008 5:48 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top