View previous topic :: View next topic
|
Author |
Message |
dudenithy
New User
Joined: 02 Mar 2012 Posts: 48 Location: India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
NO - we will not let You know
NO - no such command exists |
|
Back to top |
|
|
dudenithy
New User
Joined: 02 Mar 2012 Posts: 48 Location: India
|
|
|
|
Thanks Enrico for ur quick reply. So Is there any other way to find out the programs for a file? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
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 |
|
|
dudenithy
New User
Joined: 02 Mar 2012 Posts: 48 Location: India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
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 |
|
|
dudenithy
New User
Joined: 02 Mar 2012 Posts: 48 Location: India
|
|
|
|
Hmm, Thanks for your valuable comments,
Not a better Rexx performer, anyway will dig in some manuals, Lets see if some1 can help out.. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
parsesource
New User
Joined: 06 Feb 2006 Posts: 97
|
|
|
|
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 |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
Is this
really a word? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
better than sum1 |
|
Back to top |
|
|
|