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
 

 

Entry Point Address of loaded program.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Pankaj Shrivastava
Currently Banned

New User


Joined: 24 Jul 2009
Posts: 51
Location: Pune

PostPosted: Fri Jul 24, 2009 10:06 pm    Post subject: Entry Point Address of loaded program.
Reply with quote

For debugging and dump analysis we find the failing instruction address through the PSW. The difference in the entry point address of the Loaded program and the PSW address ( 24 bits) gives the displacement of the failing address.Can somebody help me ,How do find the entry point address of the loaded program?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Fri Jul 24, 2009 10:09 pm    Post subject: Reply to: Entry Point Address of loaded program.
Reply with quote

the dump will tell the load address,
the linkage editor/binder output will tell the entry point address
a bit of hex math will yield the result

but all that will be useless, because the psw value should be matched against the load address
Back to top
View user's profile Send private message
Pankaj Shrivastava
Currently Banned

New User


Joined: 24 Jul 2009
Posts: 51
Location: Pune

PostPosted: Fri Jul 24, 2009 10:13 pm    Post subject:
Reply with quote

Can you please explain it in bit more detail..may some screen shot icon_smile.gif
what is differenc b/w load address and entry point address .
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Fri Jul 24, 2009 10:18 pm    Post subject: Reply to: Entry Point Address of loaded program.
Reply with quote

that' s very basic

an entry point is much more, but in the context of Your question ...
load address is the address at wich the thing will/has been loaded
entry point address is the address ( relocated ) of the first instruction that will be executed when the program will get control

more technically an entry point address is something that will/needs to be externalized to other csects/components of the whole shebang
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Fri Jul 24, 2009 10:23 pm    Post subject: Reply to: Entry Point Address of loaded program.
Reply with quote

all Your doubts ( in this post, and in the other ones ) will be easily resolved by looking/Reading the appropriate manuals
starting from

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/ASMSH020?searchRequest=csect&SEARCH=Search&Type=FUZZY&SearchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK
Back to top
View user's profile Send private message
Pankaj Shrivastava
Currently Banned

New User


Joined: 24 Jul 2009
Posts: 51
Location: Pune

PostPosted: Fri Jul 24, 2009 10:29 pm    Post subject:
Reply with quote

I am not very proficient in dump analysis ... I could'nt get your last statement : but all that will be useless, because the psw value should be matched against the load address

Well I dont have abendaid in my project ..how should i calculate the NSI then ..if PSW value is also not helpful.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Fri Jul 24, 2009 10:37 pm    Post subject: Reply to: Entry Point Address of loaded program.
Reply with quote

abend AID is irrelevant to the understanding of the whole issue

looks like there is language barrier here,
reread the statement You were trying to quote, and You will see that I said nothing about the PSW,
I pointed out that You were using the wrong other address the entry instead of the load
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Fri Jul 24, 2009 10:46 pm    Post subject: Reply to: Entry Point Address of loaded program.
Reply with quote

follow on ... reworded in the hope of clarifying

Quote:
For debugging and dump analysis we find the failing instruction address through the PSW. The difference in the entry point address of the Loaded program and the PSW address ( 24 bits) gives the displacement of the failing address.Can somebody help me ,How do find the entry point address of the loaded program?


plain wrong

the displacement of the failing address in the whole load module will be the difference between the PSW address and the load address

to find anything useful You will need to find the name of the failing module/csect

from the linkage editor map and a bit of visual comparison of addresses You should easily find it
Back to top
View user's profile Send private message
Pankaj Shrivastava
Currently Banned

New User


Joined: 24 Jul 2009
Posts: 51
Location: Pune

PostPosted: Fri Jul 24, 2009 10:47 pm    Post subject:
Reply with quote

Ohh ..got you .Sorry misinterpreted that . icon_wink.gif

Ya ..Its clear..its load address which is considered instead of Entry point address icon_smile.gif

Thanks icon_biggrin.gif
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


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