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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
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    Post subject: MQ-cobol giving 2058 which is due to invalid qmgr name
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    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Apr 03, 2009 12:56 pm    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm


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