Skip to content
New issue

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

Put message not writing same message to MQ side , it writing ......&)) #177

Open
jptech8 opened this issue Feb 29, 2024 · 2 comments
Open

Comments

@jptech8
Copy link

jptech8 commented Feb 29, 2024

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}

@jptech8
Copy link
Author

jptech8 commented Mar 15, 2024

any idea to set 37 EBCDIC character set

@chughts
Copy link

chughts commented Mar 22, 2024

Please format your code so it is readable. You don't need to include line numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants