Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: I would like to find out the input file name of the particul
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: 216
Location: India

PostPosted: Fri Feb 29, 2008 2:35 pm    Post subject: Reply to: I would like to find out the input file name of th
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    Post subject:
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    Post subject: Re: Finding corresponding variable
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

Senior Member


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

PostPosted: Fri Mar 07, 2008 5:48 am    Post subject: Re: Finding corresponding variable
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us