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 » General IBM MQ Support » EBCDIC file from Mainfram to AIX (ascii) through MQ

Post new topic  Reply to topic Goto page Previous  1, 2, 3  Next
 EBCDIC file from Mainfram to AIX (ascii) through MQ « View previous topic :: View next topic » 
Author Message
Harshalw
PostPosted: Tue Jun 21, 2011 4:22 am    Post subject: Reply with quote

Voyager

Joined: 23 Jul 2008
Posts: 77

@ZPAT

- how to enable the default conversion ? will try that .

I also tried MO71 .. however found it difficult to use .. will try amqsbcg0 sample program .
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Jun 21, 2011 5:01 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

MO71 is a function rich program. The key is to use the right mouse button to see the menus. It does not navigate like explorer. It comes with a manual.

As for default data conversion - this is documented in the infocentre, or look in the file I mentioned above.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Tue Jun 21, 2011 1:46 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

zpat wrote:
As for default data conversion - this is documented in the infocentre ...

Although default data conversion might be generally useful to resolve unsupported conversions, if that were the problem then there should be more obvious symptoms, such as channel errors or MQGET MQCC_WARNINGs.
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Jun 21, 2011 10:19 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Does it hurt to try? If people are not going to bother, then neither am I.
Back to top
View user's profile Send private message
Harshalw
PostPosted: Wed Jun 22, 2011 1:23 am    Post subject: Reply with quote

Voyager

Joined: 23 Jul 2008
Posts: 77

I checked .. The message is not getting converted from EBCIDIC to ASCII through MQ. I checked with the client by sending them the downloaded file through mail. They downloaded in on there mainframe in the binary mode . The file was readable in EBCIDIC .
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Jun 22, 2011 1:42 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

What has that got to do with trying default data conversion (which ironically is NOT enabled by default)?

You have just restated the problem, which we already knew.
Back to top
View user's profile Send private message
Harshalw
PostPosted: Thu Jun 23, 2011 1:17 am    Post subject: Reply with quote

Voyager

Joined: 23 Jul 2008
Posts: 77

Sorry for the confusion .. what i meant was , somehow message is not getting converted. yesterday i worked with system admin and now i think the message is getting converted to ascii however seems the issue with new line feed .
# more h5.txt
----------------------------------- 110414 043408 ABC IUO --------
--------------------------- All poducts.
Program number ------------------------
-----------
0000DIV
0000DOR 0000ERO

However when i view it - vi

@
@
@
@
@
@
@

any suggestion here ?
Back to top
View user's profile Send private message
Harshalw
PostPosted: Thu Jun 23, 2011 1:20 am    Post subject: Reply with quote

Voyager

Joined: 23 Jul 2008
Posts: 77

may be a script need to be written to add new line feed character after some number of characters ?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jun 23, 2011 1:33 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Don't view it with vi OR with more as "plain text". View it as HEX data, or use amqsbcg to output it in HEX.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Jun 23, 2011 2:12 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

View it with MO71 (select conversion off in the browse context menu).....

Why stay in the stone age of line commands?
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Thu Jun 23, 2011 4:34 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

Harshalw wrote:
Sorry for the confusion .. what i meant was , somehow message is not getting converted. yesterday i worked with system admin and now i think the message is getting converted to ascii however seems the issue with new line feed .
# more h5.txt
----------------------------------- 110414 043408 ABC IUO --------
--------------------------- All poducts.
Program number ------------------------
-----------
0000DIV
0000DOR 0000ERO

However when i view it - vi

@
@
@
@
@
@
@

any suggestion here ?


The data is in one big long record that vi is unable to display properly.
_________________
Glenn
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Jun 23, 2011 5:08 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Set vi into edit hex mode, something like this, IMS:

[esc] :%!xxd

To leave hex mode:

[esc] :%!xxd -r
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
exerk
PostPosted: Fri Jun 24, 2011 12:27 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

zpat wrote:
...Why stay in the stone age of line commands?

Knowledge retention and good practice - and I say that as a relative newbie to IT, and one that 'grew up' in the age of the Windows GUI - and because not everyone is at a site that allows the use of such tools.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Fri Jun 24, 2011 2:01 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

mqjeff wrote:
View it as HEX data, or use amqsbcg to output it in HEX.

zpat wrote:
View it with MO71 (select conversion off in the browse context menu).....

Why stay in the stone age of line commands?

One reason:
Harshalw wrote:
I also tried MO71 .. however found it difficult to use

There are other reasons.

But the main point was:
mqjeff wrote:
View it as HEX data ...
Back to top
View user's profile Send private message
zpat
PostPosted: Fri Jun 24, 2011 2:07 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

MO71 can display messages as hex data, text or both at same time.

It can show the MQMD as well, in detail.

It can optionally convert it (using MQGMO_CONVERT) or not.

It can do many useful things very easily.

I guarentee that a little time spent getting it to work and getting used to it will be time well spent. However if you wish to ignore the advice of someone who has worked with MQ for 16 years - fine.


Last edited by zpat on Fri Jun 24, 2011 2:34 am; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2, 3  Next Page 2 of 3

MQSeries.net Forum Index » General IBM MQ Support » EBCDIC file from Mainfram to AIX (ascii) through MQ
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.