Author |
Message
|
Harshalw |
Posted: Tue Jun 21, 2011 4:22 am Post subject: |
|
|
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 |
|
 |
zpat |
Posted: Tue Jun 21, 2011 5:01 am Post subject: |
|
|
 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 |
|
 |
rekarm01 |
Posted: Tue Jun 21, 2011 1:46 pm Post subject: |
|
|
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 |
|
 |
zpat |
Posted: Tue Jun 21, 2011 10:19 pm Post subject: |
|
|
 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 |
|
 |
Harshalw |
Posted: Wed Jun 22, 2011 1:23 am Post subject: |
|
|
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 |
|
 |
zpat |
Posted: Wed Jun 22, 2011 1:42 am Post subject: |
|
|
 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 |
|
 |
Harshalw |
Posted: Thu Jun 23, 2011 1:17 am Post subject: |
|
|
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 |
|
 |
Harshalw |
Posted: Thu Jun 23, 2011 1:20 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Thu Jun 23, 2011 1:33 am Post subject: |
|
|
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 |
|
 |
zpat |
Posted: Thu Jun 23, 2011 2:12 am Post subject: |
|
|
 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 |
|
 |
gbaddeley |
Posted: Thu Jun 23, 2011 4:34 pm Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Thu Jun 23, 2011 5:08 pm Post subject: |
|
|
 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 |
|
 |
exerk |
Posted: Fri Jun 24, 2011 12:27 am Post subject: |
|
|
 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 |
|
 |
rekarm01 |
Posted: Fri Jun 24, 2011 2:01 am Post subject: |
|
|
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 |
|
 |
zpat |
Posted: Fri Jun 24, 2011 2:07 am Post subject: |
|
|
 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 |
|
 |
|