Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 215
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us