IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

MQ-cobol giving 2058 which is due to invalid qmgr name


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vidhyag

New User


Joined: 11 Mar 2009
Posts: 23
Location: india

PostPosted: Fri Apr 03, 2009 9:56 am
Reply with quote

hi all,
im working with cobol and mq. im using the pgm which i attached.while running it is giving 2058 which is due to invalid qmgr name.but i mentioned correct name only.I attached the log also.Any one suggest on this
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Apr 03, 2009 12:46 pm
Reply with quote

MQS does not make too many mistakes.
if it said invalid q-mgr name, you have an invalid q-mgr name.

either your mqs syntax is wrong,
you misspelled the q-mgr name,
q-mgr is not active,
something.

have you tried a step thru debugger so that you can insure that your
mqs parms are proper populated?
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Apr 03, 2009 12:56 pm
Reply with quote

You have defined
Code:
    03  WS-QMGR-NAME              PIC X(4) VALUE SPACES.         
and then assign
Code:
MOVE 'MQR1' TO  WS-QMGR-NAME
before issuing the MQCONN.

The fine manuals and supplied copybooks say that QMGRNAME is 48 bytes. When you call MQCONN you are passing 'MQR1' and the next 44 bytes of storage to MQ.

Garry.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top