Hi All, I am developing MQ Clinent application on VMS in C. IBM MQServer is running on windows. i define the environment MQSERVER variable.
$define MQSERVER "S_tcp/tcp/206.54.39.67" When i run this program on VMS i got the reason code 2058. the same programe working in window fine. what error is it ? Kindly help me -Murugesan #include <stdio.h> #include <stdlib.h> #include <string.h> #include <cmqc.h> int main(int argc, char **argv) { MQOD od = {MQOD_DEFAULT}; MQMD md = {MQMD_DEFAULT}; MQPMO pmo = {MQPMO_DEFAULT}; MQHCONN Hcon; MQHOBJ Hobj; MQLONG O_options; MQLONG C_options; MQLONG CompCode; MQLONG OpenCode; MQLONG Reason; MQLONG CReason; MQLONG messlen; char buffer[100]; char QMName[50]; strcpy(QMName, "QM_tcp"); MQCONN(QMName, &Hcon, &CompCode, &CReason); printf("MQCONN reason code %ld \n CompCode: %d \n", CReason,CompCode); } Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive