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
 

 

How to get Programs list for a file used

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
dudenithy

New User


Joined: 02 Mar 2012
Posts: 48
Location: India

PostPosted: Mon Aug 27, 2012 6:20 pm    Post subject: How to get Programs list for a file used
Reply with quote

Hello All,

Could you please let me know is there a way (command in cics) to find out the all CICS programs that uses a file in that environment and in what mode(Read/Update/Delete).

I have searched for a while but couldn't able to find the related topic.

Your answers are really apprciated..
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Aug 27, 2012 6:23 pm    Post subject: Reply to: How to get Programs list for a file used
Reply with quote

NO - we will not let You know icon_cool.gif
NO - no such command exists
Back to top
View user's profile Send private message
dudenithy

New User


Joined: 02 Mar 2012
Posts: 48
Location: India

PostPosted: Mon Aug 27, 2012 6:24 pm    Post subject:
Reply with quote

Thanks Enrico for ur quick reply. So Is there any other way to find out the programs for a file?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7914
Location: Bellevue, IA

PostPosted: Mon Aug 27, 2012 6:33 pm    Post subject:
Reply with quote

Since a file name can be a constant in the EXEC CICS command, or an elementary variable in either COMMAREA or WORKING-STORAGE, or a group variable in either COMMAREA or WORKING-STORAGE -- and could be located in a copy book not in the program source, you really have two choices: (1) consult the application documentation while praying that it is complete and up to date, or (2) read the code (compiler output would be the only way to be completely sure of the file usage).
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Aug 27, 2012 6:35 pm    Post subject: Reply to: How to get Programs list for a file used
Reply with quote

what about looking at the application documentation ?
usually such cross references are built when developing the specifications

but there might be products ( $$$$ ) which might cross reference almost everything
Back to top
View user's profile Send private message
dudenithy

New User


Joined: 02 Mar 2012
Posts: 48
Location: India

PostPosted: Mon Aug 27, 2012 6:40 pm    Post subject:
Reply with quote

Hi Robert, Enrico,,

Unfortunately, application which im working is an old system and documentation were not up to date. Hence now feeling really tough to backtrack.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Aug 27, 2012 6:45 pm    Post subject: Reply to: How to get Programs list for a file used
Reply with quote

well, You will have a lot of reading and scribbling to do ,

unless You are skilled enough to write a REXX to parse the sources or better the compile listings to extract the required info
Back to top
View user's profile Send private message
dudenithy

New User


Joined: 02 Mar 2012
Posts: 48
Location: India

PostPosted: Mon Aug 27, 2012 6:53 pm    Post subject:
Reply with quote

Hmm, Thanks for your valuable comments,

Not a better Rexx performer, icon_biggrin.gif anyway will dig in some manuals, Lets see if some1 can help out.. icon_rolleyes.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7914
Location: Bellevue, IA

PostPosted: Mon Aug 27, 2012 6:55 pm    Post subject:
Reply with quote

Yes, when the application documentation is not up to date and complete, the task of identifying resources used by the application (files, programs, and so forth) can be a complex and time-consuming task. For every program in your application, you have to identify each CICS command accessing a file (remembering that those commands may be located in a copy book being brought in during program compile), identify the file being used in each command (and, again, the file defintion as well as the CICS command could be in a copy book), and then document this usage somewhere. Tools are available (Google impact analysis or code analysis to find some of them), but if your site does not already own such a tool it can be pretty expensive to acquire.
Back to top
View user's profile Send private message
parsesource

New User


Joined: 06 Feb 2006
Posts: 97

PostPosted: Wed Sep 05, 2012 1:11 am    Post subject:
Reply with quote

we have statistics about file usage <==> transaction (cics monitor collects this data). your shop may have similar data available. whether this data is also easily available on program-level i donĀ“t know.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 645
Location: Pennsylvania

PostPosted: Wed Sep 05, 2012 5:18 pm    Post subject:
Reply with quote

Is this
Quote:
some1
really a word?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Sep 05, 2012 5:22 pm    Post subject:
Reply with quote

better than sum1
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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