Before acting on this e-mail or opening any attachment, you are advised to read 
the disclaimer at the end of this mail.

When I run a java program that connects to MQSeries through a shell script from
qsh I get an MQSeries invalid environment error (reason code 2012).

1) Here is the call and results from the shell script:

   MQJE001: Completion Code 2, Reason 2012                                      
   JS_LoadAccounts: MQ exception occurred - Completeion code: 2 Reason code:
2012                                                                      MQJE001: Completion Code 2, Reason 2012              

2) When I copy the contents of the shell script ( and make the call
outside of the shell script (still in qsh), it works fine:

 ===>       java -classpath
rodData/mqm/java/lib" testmsg POD1 POD_TEST       

3) When I call the class from a CL it also works fine.

QMQM and QMQMJAVA are in the library list.

Any ideas?

Thanks in advance

This e-mail is intended solely for the addressee and is strictly confidential. 
If you are not the addressee, please do not read, print, re-transmit, store or 
act in reliance on it or any attachments. Instead please e-mail it back to the 
sender and delete the message from your computer.

E-mail transmission cannot be guaranteed to be secure or error free and The 
Co-operative Bank accepts no liability for changes made to this e-mail (and any 
attachments) after it was sent or for viruses arising as a result of this 
e-mail transmission.

Any unauthorised reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message is 
strictly prohibited.

The Co-operative Bank reserves the right to intercept any e - mails or other 
communication for permitted purposes in accordance with the current legislation 
which you send to, or receive from, any of the employees or agents of the Bank 
via Bank telecommunication systems. By so corresponding you also give your 
consent to the Bank monitoring and recording of any correspondence using these 

The Co-operative Bank p.l.c. is registered in England and Wales, number 990937. 
The registered office is at PO Box 101, 1, Balloon Street, Manchester, M60 4EP. 

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.