Author |
Message
|
Beaula |
Posted: Tue Feb 25, 2003 3:13 am Post subject: Putting Data on Windows NT from OS/390 |
|
|
Apprentice
Joined: 11 Sep 2002 Posts: 39 Location: Infotech, Madhapur,India
|
I have some main frame applications in cobol and would like to put the data on mainframe to MQSeries queues on Windows NT. How do i do this ?. Can any one explain to me with some sample, how this can be done ..... |
|
Back to top |
|
 |
zpat |
Posted: Tue Feb 25, 2003 4:52 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
This is a basic question and is covered in the manuals.
Will the NT system use MQ client or MQ Server is the first choice?
MQ is cross platform - the message can be read anywhere - just make sure that the message format is set to MQSTR and the MQGET specifies the CONVERT option. |
|
Back to top |
|
 |
Beaula |
Posted: Wed Feb 26, 2003 10:58 pm Post subject: MQseries Coded Character Set ID |
|
|
Apprentice
Joined: 11 Sep 2002 Posts: 39 Location: Infotech, Madhapur,India
|
zpat wrote: |
This is a basic question and is covered in the manuals.
Will the NT system use MQ client or MQ Server is the first choice?
MQ is cross platform - the message can be read anywhere - just make sure that the message format is set to MQSTR and the MQGET specifies the CONVERT option. |
Is it that we have to set the message format for MQMD as MQFMT_STRING ?. The data which we are sending is a mixture of String and Numeric data from OS/390 and if we set to MQFMT_STRING, will this take care of both numeric and string data mixture ?.
Should we set for the CCSID in MQMD as MQCCSI_Q_MGR and encoding as MQENC_NATIVE before putting the message to NT ?.
In page 646 of MQSeries Application programming reference, we found the Native CCSID for MVS as 500, 1148 and 924. Which value should we use or Should we set it to MQCCSI_Q_MGR ?.
Please clarify ....... |
|
Back to top |
|
 |
mgrabinski |
Posted: Wed Feb 26, 2003 11:25 pm Post subject: |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
1) define your message as MQFMT_STRING (the best and most convienent way of dealing with conversion)
2) set the CCSID in MQMD to MQCCSI_Q_MGR (it's default)
3) set proper queue managers CCSID (on both MVS and Win; consult the MQ manuals for conversion tables proper for your language)
4) use MQGMO_CONVERT in your Win application _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
Beaula |
Posted: Thu Feb 27, 2003 12:11 am Post subject: Character Code ID & Encoding |
|
|
Apprentice
Joined: 11 Sep 2002 Posts: 39 Location: Infotech, Madhapur,India
|
mgrabinski wrote: |
1) define your message as MQFMT_STRING (the best and most convienent way of dealing with conversion)
2) set the CCSID in MQMD to MQCCSI_Q_MGR (it's default)
3) set proper queue managers CCSID (on both MVS and Win; consult the MQ manuals for conversion tables proper for your language)
4) use MQGMO_CONVERT in your Win application |
Thanks for the reply.
I didnot understand the third answer. Can you please explain once again. I am using MVS & English language. I have mq manuals for NT. Can you please specify ther manual name ?.
Should i set the encoding to MQENC_NATIVE ?. |
|
Back to top |
|
 |
mgrabinski |
Posted: Thu Feb 27, 2003 12:30 am Post subject: |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
Yes, use MQENC_NATIVE
If your language is English, the default CCSID settings for queue managers will do. If not, see Application Programming Reference, there are conversion tables for all platforms _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
oz1ccg |
Posted: Thu Feb 27, 2003 10:20 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
Quote: |
Is it that we have to set the message format for MQMD as MQFMT_STRING ?. The data which we are sending is a mixture of String and Numeric data from OS/390 and if we set to MQFMT_STRING, will this take care of both numeric and string data mixture ?. |
By the way, when sending data between Z/OS and the other platforms, my personal recommendation is use only text data.
This is because when converting "binary" data, they might get interpreted as a character of some type, and therefore get a wrong convertion. 2nd, the different format of binary data on Z/OS and the rest of the world.
Next somebydy would say create a convertion routine, and yes it's posibble, but requires good management skills to combine program changes together with MQ changes.....
The easiest solution is just use characters A-Z, 0-9 ,.- etc. And it have the feature that it's easy for the developers to read........
Just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
|