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

How to get Programs list for a file used


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Aug 27, 2012 6:23 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Aug 27, 2012 6:33 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Aug 27, 2012 6:35 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Aug 27, 2012 6:45 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Aug 27, 2012 6:55 pm
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
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: 792
Location: Pennsylvania

PostPosted: Wed Sep 05, 2012 5:18 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
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
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top