We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Below peice of code not same string to MQside instead its writing some gibberish headers character at MQ side , it set MQMDas well
function putMessage(hObj) {
55
56 var msg = 'MSH|^~\&|SENDING_APP|SENDING_FACILITY|RECEIVING_APP|RECEIVING_FACILITY|20220229120000||ADT^A08|123456789|P|2.3||||'
57
58 var mqmd = new mq.MQMD(); // Defaults are fine.
59 var pmo = new mq.MQPMO();
60var mqmd = new mq.MQMD();
mqmd.Format = 'MQSTR'
62 pmo.Options = MQC.MQPMO_NO_SYNCPOINT |
63 MQC.MQPMO_NEW_MSG_ID |
64 MQC.MQPMO_NEW_CORREL_ID;
65
66 mq.Put(hObj,mqmd,pmo,msg,function(err) {
67 if (err) {
68 console.log(formatErr(err));
69 } else {
70 console.log("MsgId: " + toHexString(mqmd.MsgId));
71 console.log("MQPUT successful");
72 }
73 });
74}
The text was updated successfully, but these errors were encountered:
any idea to set 37 EBCDIC character set
Sorry, something went wrong.
Please format your code so it is readable. You don't need to include line numbers.
No branches or pull requests
Below peice of code not same string to MQside instead its writing some gibberish headers character at MQ side , it set MQMDas well
function putMessage(hObj) {
55
56 var msg = 'MSH|^~\&|SENDING_APP|SENDING_FACILITY|RECEIVING_APP|RECEIVING_FACILITY|20220229120000||ADT^A08|123456789|P|2.3||||'
57
58 var mqmd = new mq.MQMD(); // Defaults are fine.
59 var pmo = new mq.MQPMO();
60var mqmd = new mq.MQMD();
mqmd.Format = 'MQSTR'
62 pmo.Options = MQC.MQPMO_NO_SYNCPOINT |
63 MQC.MQPMO_NEW_MSG_ID |
64 MQC.MQPMO_NEW_CORREL_ID;
65
66 mq.Put(hObj,mqmd,pmo,msg,function(err) {
67 if (err) {
68 console.log(formatErr(err));
69 } else {
70 console.log("MsgId: " + toHexString(mqmd.MsgId));
71 console.log("MQPUT successful");
72 }
73 });
74}
The text was updated successfully, but these errors were encountered: