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.
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