MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

capture name of load library ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Tue May 13, 2008 6:25 pm    Post subject: capture name of load library ? Reply with quote

Hello,

Does anyone know how to capture, in a COBOL program, the name of the load library that the program was loaded from ?

Thanks for any help....
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue May 13, 2008 6:47 pm    Post subject: Reply with quote

There is probably some good way to do this, but one way would be to run the various control blocks that are managed by Contents Supervisor. Its been a decade or so since I did this, but I think they were the CDE an LPDE ( or something similar). You'd have to know the address you were running at and then compare the load address and length to that known address. Or you could call statically linked assembler program that could do a CSVQUERY macro to do the same thing (CSVQUERY accepts an address and returns the name of the module loaded at that address).
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Wed May 14, 2008 8:47 am    Post subject: Reply with quote

You could force an abend and Abend-AID will tell you.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Wed May 14, 2008 10:06 am    Post subject: Reply with quote

Thanks, but our production support unit doesn't like to wake people up at 2 AM if they don't have to ... Smile
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Wed May 14, 2008 11:34 am    Post subject: Reply with quote

I realized that, but I was just proposing a "less than ideal" solution. I should have mentioned that initially. Smile
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Wed May 14, 2008 12:39 pm    Post subject: Reply with quote

I know.. my reply was merely in jest.... Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group