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
 

 

STATIC & DYNAMICALLY CALLING MQ subroutine

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
jasveer singh

New User


Joined: 06 Mar 2006
Posts: 16

PostPosted: Sun May 31, 2009 5:35 pm    Post subject: STATIC & DYNAMICALLY CALLING MQ subroutine
Reply with quote

Hi ,

I read that all calls to MQSeries functions (MQCONN, MQOPEN, MQGET, MQPUT, etc.) "must" be STATIC

I have a program PGM1 which is calling subroutine PGM2 dynamically. PGM2 reads the messages from a queue using MQCONN, MQOPEN functions via STATIC calls. Process has been working fine till date.

Recently we made a small enhancement in PGM1 but did not change PGM2. Post installation, we were unable to read the messages from queues & PGM2 failed at MQCONN calls giving S806 abend.

My question here is Do we need to recompile/relink PGM2 & then PGM1 to complete the STATIC call chain from calling program to all called pgms.

Note = NODYNAM=Y is set for both PGM1 & PGM2.

Could you please throw some light on this .

Thanks,
Jasveer Singh
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Sun May 31, 2009 6:54 pm    Post subject:
Reply with quote

It is Sunday, so I will give you a break and not rip into you with my normal DBZ style.

an 806 simply means that the loadlibs where scanned for a module name and the module was not found.

Suggest that you insure that the loadlibs contain PGM1, PGM2 and the MQS.loadlib (what ever the name is for your site).

Since you say the CALL to MQCONN failed, I would assume that you have not lib'ed your MQS load library during execution.

If you did not change PGM2, there is no need to recompile/relink PGM2
Quote:
PGM2 & then PGM1 to complete the STATIC call chain from calling program to all called pgms.
this comment scares me (actually, it says you do not know what you are talking about.)
The only CALL chain you will find
is dynamically generated and maintained by the the OPS-SYS
during RUN TIME.

Aren't you glad it is Sunday?
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 -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts "DFSRRC00 vs IKJEFT01" for ... arunsoods All Other Mainframe Topics 5 Fri Aug 12, 2016 9:54 pm
No new posts How to get the program name of callin... pkmurali COBOL Programming 8 Mon Aug 01, 2016 3:36 am


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