ASCII to EBCDIC conversion

207 views
Skip to first unread message

nishi

unread,
Jul 9, 2012, 1:43:17 PM7/9/12
to performance-test...@googlegroups.com
Hi,
I have a situation where the client has to send data to the server in EBCDIC format. I have java code to send the data but I am facing ASCII to EBCDIC conversion. Is thereany tool which can be used as an adapter/addin/plugin that can be used. If there is java/Javascript code for it that might help as well.
Nishi

Manish Bhalshankar

unread,
Jul 10, 2012, 12:33:03 AM7/10/12
to performance-test...@googlegroups.com
Hi Nishi,

Let me know if this helps.


Nishi

--
You received this message because you are subscribed to the Google
Groups "Performance Testing using Webload" group.
To post to this group, send email to
performance-test...@googlegroups.com
To unsubscribe from this group, send email to
performance-testing-us...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/performance-testing-using-webload?hl=en



--
Regards,
Manish

nishi upp

unread,
Jul 10, 2012, 4:35:28 PM7/10/12
to performance-test...@googlegroups.com
it looks ok except it is taking input from file, I am expecting EBCDIC string to come directly to a port.below is what I am using. what I like to do is get the data from from_server=new java.io.DataInputStream(s.getInputStream()) and print it as a string in ASCII
 
try
{
// Connect to a server through Java socket
s = new java.net.Socket ("10.80.40.12",4035)
// Create Java I/O streams
from_server = new java.io.DataInputStream(s.getInputStream())
to_server = new java.io.PrintStream(s.getOutputStream())
 
//Read line from Input stream to JavaScript string value
line = from_server.readLine()
InfoMessage("" + line)
to_server.println ("0512CC00592015A8C173B1012000037395XXXXXX100400000")


}
 
catch (Exception) {
ErrorMessage ("Server is not connected")
}
 
finally
{
try {
if (s != null)
s.close();
InfoMessage("connection closed:")
}
catch(Exception) {}
}

Reply all
Reply to author
Forward
0 new messages