ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Are there any EBCDIC to ASCII scripts or programs for WinNT?

Post new topic  Reply to topic
 Are there any EBCDIC to ASCII scripts or programs for WinNT? « View previous topic :: View next topic » 
Author Message
mworsham
PostPosted: Thu Sep 12, 2002 5:48 am    Post subject: Are there any EBCDIC to ASCII scripts or programs for WinNT? Reply with quote

Novice

Joined: 12 Sep 2002
Posts: 19
Location: Augusta, GA

Hi all. I have a small problem that I am not getting addressed anywhere:

Is there a program or script available for WinNT to convert EBCDIC to ASCII? I tried using the SupportPack from IBM called 'Q.exe' (MA01) for retrieving/placing messages from/into the queues, but haven't heard from anyone if the Q.exe supports the GMO_CONVERT option.

The support side of the incoming channel refuses to add in CONVERT(YES) for their sender channel, so the change must be done on our 'receiving' side. I am not a programmer (just a server administrator) so I don't know how to create a java or C++ code to do the option inside of the MQGET. I was wondering if there is already a program/script on the market that does this already?

Thanks.

-- M
Back to top
View user's profile Send private message Visit poster's website
mrlinux
PostPosted: Thu Sep 12, 2002 7:46 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Where are you getting this from
The support side of the incoming channel refuses to add in CONVERT(YES) for their sender channel, so the change must be done on our 'receiving' side.

The Sender channel side does the conversion not the RCVR
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
mworsham
PostPosted: Thu Sep 12, 2002 10:38 am    Post subject: Reply with quote

Novice

Joined: 12 Sep 2002
Posts: 19
Location: Augusta, GA

Correct.

We are only using MQ for a one-way connection: they send from MVS server, we receive on WinNT server. We use IBM's Q.exe program to extract from the Order Queue (via trigger) to an output file. We then pass the output file to an OBDC process on the server to connect to the MS SQL database on another system.

The developers/adminstrator on the MVS side refuse to place the CONVERT(YES) on their sending channel, so we have to do the conversions from EBCDIC to ASCII ourselves. Yes it sucks, but that is what my director wants done.

-- M
Back to top
View user's profile Send private message Visit poster's website
mrlinux
PostPosted: Thu Sep 12, 2002 11:14 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Well did the application developer at least set the mqmd.format to string
because you could then do the MQGET with convert.
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
blr92
PostPosted: Thu Dec 05, 2002 9:56 am    Post subject: Reply with quote

Newbie

Joined: 05 Dec 2002
Posts: 3

Here is my program (I have done it when I wrote Transfert File By MQseries between MVS OS390 and NT Server for my company :

/*
** Specifique fonction : ASCII <=> EBCDIC conversion functions
*/
static unsigned char a2e[256] = {
0, 1, 2, 3, 55, 45, 46, 47, 22, 5, 37, 11, 12, 13, 14, 15,
16, 17, 18, 19, 60, 61, 50, 38, 24, 25, 63, 39, 28, 29, 30, 31,
64, 79,127,123, 91,108, 80,125, 77, 93, 92, 78,107, 96, 75, 97,
240,241,242,243,244,245,246,247,248,249,122, 94, 76,126,110,111,
124,193,194,195,196,197,198,199,200,201,209,210,211,212,213,214,
215,216,217,226,227,228,229,230,231,232,233, 74,224, 90, 95,109,
121,129,130,131,132,133,134,135,136,137,145,146,147,148,149,150,
151,152,153,162,163,164,165,166,167,168,169,192,106,208,161, 7,
32, 33, 34, 35, 36, 21, 6, 23, 40, 41, 42, 43, 44, 9, 10, 27,
48, 49, 26, 51, 52, 53, 54, 8, 56, 57, 58, 59, 4, 20, 62,225,
65, 66, 67, 68, 69, 70, 71, 72, 73, 81, 82, 83, 84, 85, 86, 87,
88, 89, 98, 99,100,101,102,103,104,105,112,113,114,115,116,117,
118,119,120,128,138,139,140,141,142,143,144,154,155,156,157,158,
159,160,170,171,172,173,174,175,176,177,178,179,180,181,182,183,
184,185,186,187,188,189,190,191,202,203,204,205,206,207,218,219,
220,221,222,223,234,235,236,237,238,239,250,251,252,253,254,255
};

static unsigned char e2a[256] = {
0, 1, 2, 3,156, 9,134,127,151,141,142, 11, 12, 13, 14, 15,
16, 17, 18, 19,157,133, 8,135, 24, 25,146,143, 28, 29, 30, 31,
128,129,130,131,132, 10, 23, 27,136,137,138,139,140, 5, 6, 7,
144,145, 22,147,148,149,150, 4,152,153,154,155, 20, 21,158, 26,
32,160,161,162,163,164,165,166,167,168, 91, 46, 60, 40, 43, 33,
38,169,170,171,172,173,174,175,176,177, 93, 36, 42, 41, 59, 94,
45, 47,178,179,180,181,182,183,184,185,124, 44, 37, 95, 62, 63,
186,187,188,189,190,191,192,193,194, 96, 58, 35, 64, 39, 61, 34,
195, 97, 98, 99,100,101,102,103,104,105,196,197,198,199,200,201,
202,106,107,108,109,110,111,112,113,114,203,204,205,206,207,208,
209,126,115,116,117,118,119,120,121,122,210,211,212,213,214,215,
216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,
123, 65, 66, 67, 68, 69, 70, 71, 72, 73,232,233,234,235,236,237,
125, 74, 75, 76, 77, 78, 79, 80, 81, 82,238,239,240,241,242,243,
92,159, 83, 84, 85, 86, 87, 88, 89, 90,244,245,246,247,248,249,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57,250,251,252,253,254,255
};


char ASCIItoEBCDIC(const unsigned char c)
{
return a2e[c];
}

char EBCDICtoASCII(const unsigned char c)
{
return e2a[c];
}


/*Try to declare necessary variables : You ensure It do work*/

memset(correlid_ascii,'\0',sizeof(correlid_ascii));
for (i=0;i<sizeof(correlid);i++)
{
if (i < sizeof(correlid) - 1)
(const unsigned char)(correlid_ascii[i]) = EBCDICtoASCII((const unsigned char)(correlid[i]));
}

Hope It wil help you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Are there any EBCDIC to ASCII scripts or programs for WinNT?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.