Solved

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

Posted on 2004-09-12
5
860 Views
Last Modified: 2012-05-07
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
0
Comment
Question by:sureshpodaralla
5 Comments
 
LVL 19

Accepted Solution

by:
Shauli earned 63 total points
ID: 12040949
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
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 62 total points
ID: 12041446
Try:
 "*GDSTOP" & Chr$(&H25)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now