View previous topic :: View next topic
|
Author |
Message |
ajeshrn
New User
Joined: 25 Mar 2009 Posts: 78 Location: India
|
|
|
|
Hi,
I was trying to linkedit a cobol program which open and put message into MQ. I have been trying to use the below JCL , but I am getting a message saying the variables MQPUT or MQCONN is not valid.
Code: |
//LKED EXEC PGM=IEWL,
// COND=(5,LT,COB),
// PARM='XREF,LIST,MAP,&MODE,SIZE=(2048K,256K)'
//SYSLIB DD DISP=SHR,DSN=CEE.SCEELKED,DCB=BLKSIZE=32720
// DD DISP=SHR,DSN=&LOADLIB.
// DD DISP=SHR,DSN=&LOADLB1.
// DD DISP=SHR,DSN=&LOADLB2.
// DD DISP=SHR,DSN=&LOADLB3.
// DD DISP=SHR,DSN=TCPIP.SEZATCP *TCPIP
// DD DISP=SHR,DSN=OEM.MQM.V6R0M0.SCSQLOAD.GISC *MQ
//SYSLMOD DD DISP=SHR,DSN=&LOADLIB.(&MODULE.)
//SYSUT1 DD UNIT=DISK,SPACE=(CYL,(1,1))
//SYSPRINT DD SYSOUT=*
//SYSLIN DD DSN=&&LOADS&S.,DISP=(OLD,DELETE)
// DD DDNAME=SYSIN |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
You need to post more relevant information.
What was shown by the compile (end of the listing)?
Has anyone ever successfully used MQ on your system?
You should NOT be trying to use self-created jcl. Your system has standard compile and link jcl you should use. If there is no standard for MQ compile/link, then you (or your manager) need(s) to work with the people who support the compiler and link editor to create standard jcl for this. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you have probably missed putting the 'stubs' in the compile step.
as Dick said, your site has to generate the appropriate JCL for
compile/linkedit.
if you are also dealing with DB2 in the rununit,
you should be thinking of RRSAF,
which means a different type of mqsstub
as well as an appropriate set-up for the proper dsn... libraries. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Probably your system has aliases for MQCONN and MQPUT so it fails
So as others said you need to check with people who knows the system well |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
but I am getting a message saying the variables MQPUT or MQCONN is not valid. |
it would have been nice if the TS had posted the REAL message instead of his interpretation...
IMO the message as worded does not relate to the linkage editor,
but until the TS clarifies we will never know |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
A linkedit for MQ uses linkedit controls cards to specify the 'stub' to be included in the linkedit. - the linkage editor/binder does not find the required module automatically. This is because the MQ calls in the program are to entry-points within the appropriate 'stub' module - CSQBSTUB, CSQQSTUB or CSQCSTUB .
Garry. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Garry, When I was working at your place I did an MQ program and remember nothing of this because, I presume, it was all set up in ChangeMan. So I guess the TS should check to see if he is using the correct options in whatever source control app he is using (ChangeMan/Endevor/whatever). Here, down the road from you, we use Endevor but no MQ so I cannot look it up. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Garry,
thx for the post and clearing-up a few misstatements |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
Quote: |
saying the variables MQPUT or MQCONN is not valid |
This sounds more like a compile error than an link edit problem. But, as others have noted, without the actual message text it is hard to be certain of anything. |
|
Back to top |
|
|
ajeshrn
New User
Joined: 25 Mar 2009 Posts: 78 Location: India
|
|
|
|
Sorry for not putting the actual error message which I was getting.
I was trying to compile and link edit the program, and I was getting the below error yesterday while Linkedit
IEW2278I B352 INVOCATION PARAMETERS - XREF,LIST,MAP,RMODE=ANY,SIZE=(2048K,256K)
IEW2456E 9207 SYMBOL MQCONN UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY.
IEW2456E 9207 SYMBOL MQOPEN UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY.
IEW2456E 9207 SYMBOL MQPUT UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY.
As Garry and dbzTHEdinosauer suggested, I tried including the Stubs and it worked. Thanks a lot! |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
Good to know you got it working.
Garry |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
I mentioned using stubbs.
Garry told you where to use them.
kudos go to Garry for his accurate (as always) comments. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
Thanks Dick |
|
Back to top |
|
|
mlajbus
New User
Joined: 05 Aug 2005 Posts: 1 Location: mexico city
|
|
|
|
wrote: |
you have to add as shown
I think the issue is only with link edit step. I see that the precompile
and compile steps gave 04 which is acceptable. The link edit is having 08
RC. When I was checking my link edit steps, I could see that there is a
line for CSQSTUB
//LINK EXEC PGM=IEWL,COND=(8,LT,PLI),PARM=(LIST,LET,XREF,MAP)
//CSQSTUB DD DSN=SYS1.MQM.SCSQLOAD,DISP=SHR
I also see that the MQ stub also also needs to be included with
SYSIN
//LINK.SYSIN DD *
INCLUDE CSQSTUB(CSQCSTUB)
The CSQCSTUB is for CICS programs. You will have to change to correct
CSQSTUB value based on the mode of your program.
WebSphere MQ for z/OS supplies the following stub programs:
CSQBSTUB
Stub program for z/OS batch programs
CSQBRRSI
Stub program for z/OS batch programs using RRS by way of the MQI
CSQBRSTB
Stub program for z/OS batch programs using RRS directly
CSQCSTUB
Stub program for CICS® programs
CSQQSTUB
Stub program for IMS™ programs
CSQXSTUB
Stub program for distributed queuing non-CICS exits
CSQASTUB
Stub program for data-conversion exits
www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q025760_.htm?lang=en
|
|
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1248 Location: Richfield, MN, USA
|
|
|
|
ajeshrn left the building 2 years ago. |
|
Back to top |
|
|
|