Sending Hex 25 value along with a string from vb app to mainframe app

Hi,

My VB dll interacts with Mainframe via IBM Mqseries queues.
On the mainframe side along with a string it expects HEX25 value at the end of the string.
I dont know how to send this value to main frame.

From my app I need to send  "*GDSTOP" & HEX25
I tried   "*GDSTOP" & vbcr
I tried  "*GDSTOP" & vbcrlf
I also tried "*GDSTOP" & HEX$(25)

None worked. Mainframe did not recognize HEX$(25) value.

How can I send HEX25 value as a string from VB so that on main frame side it takes as
HEX 25.

Thanks,
Suresh
sureshpodarallaAsked:
Who is Participating?
 
ShauliConnect With a Mentor Commented:
If I get you right, then the dec equivalent to Hex 25 would be 37. So if the other ends needs hex 25, try to send Hex(37).

S
0
 
GrahamSkanConnect With a Mentor RetiredCommented:
Try:
 "*GDSTOP" & Chr$(&H25)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.