View previous topic :: View next topic
|
Author |
Message |
Daniel Biagi
New User
Joined: 15 Oct 2007 Posts: 4 Location: Brazil
|
|
|
|
Hello everybody,
I need to list all unreferenced data items from a program using TSO. I know there's a feature in MFE that does this, but I only have remote access to the code.
Can anybody help me?
Thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello Daniel and welcome to the forums,
I am not aware of any way to do this in standard tso/ispf.
You might be able to download the code and do what you want in MFE. . . If the source is in one or more PDS(s), you can download all members of a pds with a single click in many of the tcp/ip client software.
Just a thought. |
|
Back to top |
|
|
Daniel Biagi
New User
Joined: 15 Oct 2007 Posts: 4 Location: Brazil
|
|
|
|
Thanks for the answer, Dick.
But the problem is that I don't have direct access to TSO/ISPF.
I need to make a remote connection to a computer inside the network and use the network to acess TSO/ISPF.
So I still need help
Thanks |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
But the problem is that I don't have direct access to TSO/ISPF. |
What do You mean...
can You access the mainframes where the programs You need to check reside ???
Your description of Your access capabilities is not very clear |
|
Back to top |
|
|
socker_dad
Active User
Joined: 05 Dec 2006 Posts: 177 Location: Seattle, WA
|
|
|
|
You have access to TSO/ISPF as I understand your statement. When a program is compiled, there is usually a name cross-reference section towards the end of the listing (unless some dunny has turned off that compile option....).
Every name is listed alphabetically along with every line where it is referenced. |
|
Back to top |
|
|
Daniel Biagi
New User
Joined: 15 Oct 2007 Posts: 4 Location: Brazil
|
|
|
|
enrico-sorichetti wrote: |
What do You mean...
can You access the mainframes where the programs You need to check reside ???
Your description of Your access capabilities is not very clear |
I meant that I have to access a desktop inside the network (remote connection) where TSO/ISPF runs. In other words, I don't have privilege to do anything except open TSO/ISPF using IBM Host on Demand.
I cannot download/upload anything. Even clipboard sharing is disabled due security restrictions.
socker_dad wrote: |
You have access to TSO/ISPF as I understand your statement. When a program is compiled, there is usually a name cross-reference section towards the end of the listing (unless some dunny has turned off that compile option....).
Every name is listed alphabetically along with every line where it is referenced. |
Yes. I know I can see all the referenced data there, but sometimes I have to remove unreferenced data from a program, like unused variables in Working-Storage.
So if there was a way, to list them for me, just like MFE does, it would be pretty helpful.
Just an example of what I need.
Code: |
WORKING-STORAGE SECTION.
01 WDATE PIC X(06) VALUE SPACES.
01 WTIME PIC X(08) VALUE SPACES.
PROCEDURE DIVISION.
RT-PRINCIPAL SECTION.
*
ACCEPT WTIME FROM TIME.
*
RT-PRINCIPALX. EXIT. |
The WDATE data-item isn't being used in the program so it isn't referenced. It should be in the list. But I don't have any clue of how can this be done.
Thanks for the answers, people! |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Do you have access to (or can you generate) the compile listings?
An XREF gives a sorted list of all datanames (the short version omits the unreferenced ones) and the line number defined and where modified.
Pair a sorted by defined line number version up to the data division map (showing actual order and level) and that will get you the raw data....
In the 'olden' days, you could still get an unsorted XREF, but it doesn't seem to be available anymore...... |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
by using the correct compile options (you have internet access, take a look at a manual to determine the correct compiler options) you can generate your lists and not generate an object.
If you have access to delete unused data definitions in a program, you have access to accomplish what you want. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello Daniel,
Can you download sysout output from jobs you submit on the mianframe?
If you can, you might simply list the source into a single output file and download the "listing" or run multiple and download each output individually.
Just a thought. I've worked quite a few places that had much of the environment "locked down" but often there is a way to get what you need and still stay within "the rules" of the organization. |
|
Back to top |
|
|
Daniel Biagi
New User
Joined: 15 Oct 2007 Posts: 4 Location: Brazil
|
|
|
|
Thanks again for the answers.
I'll try to compile the program using NOUNREF and will keep you updated about it.
@dick scherrer,
Check you PM, please.
Thanks |
|
Back to top |
|
|
|