ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Setting MQ variables from Cobol on Windows

Post new topic  Reply to topic
 Setting MQ variables from Cobol on Windows « View previous topic :: View next topic » 
Author Message
kevinf2349
PostPosted: Tue Jan 25, 2005 8:29 am    Post subject: Setting MQ variables from Cobol on Windows Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Hi

I have a quick question.

In VB.Net I can set an MQEnviroment.hostname="xxxxxxxxxx"

How do I do this in COBOL on windows? I am not a COBOL programmer so please be gentle with me.

I have looked in the manuals but don't find anything that tells me. Is it even possible?

Is the only way I can do this in COBOL to do it outside of the program?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 25, 2005 8:36 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Which COBOL?

This would be an implementation specific answer, as it would end up having to call a Windows API function.

That is, AcuCOBOL for Windows will have one answer and IBM's COBOL for Windows (Visual Age?) will have another.

So I would look at the COBOL documentation a little better.
****************
Edit:

Sorry. The answer above is for setting an Environment variable.

Reading the question a little better...

In COBOL you will not use MQEnvironment. Instead, it is a lot more like writting a C/C++ MQ program - you use MQCONN or MQCONNX and etc.

There are sample programs in COBOL provided with the rest of the MQ sample code - look at amq0get0.cbl and amq0put0.cbl.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Tue Jan 25, 2005 8:42 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Thanks Jeff
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Setting MQ variables from Cobol on Windows
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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.