View previous topic :: View next topic
|
Author |
Message |
ganasrinivasan
New User
Joined: 06 Nov 2006 Posts: 27 Location: Montreal
|
|
|
|
Hi,
I am trying to interpret SYSADATA output from assembler compilation.
Can someone please help/direct me to right place? I had looked in to HLASM programming guide, but the layout in SYSADATA is not matching with guide.
I am missing something? Is there any easy way to interpret. I am trying to create some tools using this.
Thanks in advance! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
hard to believe ( unless You are looking at a manual for a different hlasm version )
anyway You can find the layout looking at
Code: |
HLA.SASMMAC1(ASMADATA) |
substitute HLA with whatever qualifier is used in Your system |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
I've never looked, but I don't see how the SYSADATA from an Assembler program would differ from how it is documented in the Programmer's Guide. Ensure that you have the manual for your release of the Assembler, but I doubt there has been any change in the general format of the SYSADATA anyway.
It''l be "easy" to read once you know how, and not so until you do. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
As Mr. Sorrichetti says, use the macro in SASMAC1.
I have a program that scans SYSADATA. From time to time IBM alters the contents of SYSADATA; the update would break my program. I think the update from V1R4 to V1R5 broke my program, but V1R5 to V1R6 was OK. Unfortunately, it's been a long time since I ran it and I can't find the source. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
I am recreating the program from 15 or 20 years ago that disappeared. This program uses the SYM and XREF records. I found two problems in XREF on the way.
Comment -
Code: |
ADXREF_SYM_OFF DS FL4 Offset of Symbol/Literal name
ADXREF_SYM_LEN DS FL4 Offset of Symbol/Literal name |
The comment on ADXREF_SYM_LEN is obviously wrong. It's actually a length, as implied by the symbol name.
Value -
Code: |
ADXREF_REFS_OFF DS FL4 Offset to first reference |
In data with variable length records an offset usually means it includes the RDW for the record. This offset does not include the RDW.
In the program I used ADXREF_SYM_NAME rather than ADXREF_SYM_OFF so I can't comment on its accuracy.
I also looked at the record descriptions in the manual. Like you, I found them to be fairly useless. |
|
Back to top |
|
|
ganasrinivasan
New User
Joined: 06 Nov 2006 Posts: 27 Location: Montreal
|
|
|
|
Hi All,
Now i am able to interpret the details in manual to SYSADATA file (Initially i was referring to a wrong version).
Thanks for your inputs. Additionally i would like to know your thoughts on using compiler listing or sysadata to create some tools (like cross reference, some specific source parser tool etc).
Note:
I know that there is a tool kit which provides the cross reference etc.. but thought of creating a tool which is very specific to our need. |
|
Back to top |
|
|
ganasrinivasan
New User
Joined: 06 Nov 2006 Posts: 27 Location: Montreal
|
|
|
|
To be more clear, I would like to know which one (compiler listing or SYSADATA) will be more appropriate to create some cross reference tools. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
That is a different subject and, as you said this would be tightly tailored to your site and it depends on what you want your cross-reference to look like and what data it is to hold then you should fo the analysis and see which dataset is appropriate to your needs. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
The tool I mentioned from long ago was a cross reference tool. It was tailored for JES2, but it can be considered a general purpose tool.
A typical output line is
$AFTOFF HASPCNVT *HASPCOMM HASPNUC
Symbol $AFTOFF is used in the listed modules, and modified in HASPCOMM.
I'm thinking about sending the reworked tool to CBT, but its doc and packaging needs more work before I can do that.
Is this something like you're think about? |
|
Back to top |
|
|
|