Author |
Message
|
WBI_user |
Posted: Tue Aug 28, 2001 9:38 pm Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
In COBOL a field defined as PIC 9(04) can be blank. However if this is imported to MRM, it expect data for example 0000. I already changed mandatory to 'no' in the connection record. It still fail when the incoming message has blank in that field. It'll work if I change that field from blank to '0000'.
Any idea what I have to do in MRM to handle a message containing blanks in field defined as PIC 9(n)? |
|
Back to top |
|
 |
huebi |
Posted: Wed Aug 29, 2001 1:18 am Post subject: |
|
|
Novice
Joined: 01 Jul 2001 Posts: 16
|
Cant you change it to X(4)? And then test in MRM the values of that field? PIC 9 is a string represantation, too, only the compiler adds some testing routines when doing a compute with such a field. |
|
Back to top |
|
 |
WBI_user |
Posted: Wed Aug 29, 2001 11:08 am Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
I have made that suggestion to customer. However the don't like the idea because they want to keep the COBOL copy books used by COBOL program the same as those used by MQSI. They refuse to put any restriction on their COBOL programmer either.
I thought that saying mandatory no will tell MRM that the filed may or may not be there. Am I right ? If yes, why is MRM still insist on getting 0000 instead of blanks. |
|
Back to top |
|
 |
kolban |
Posted: Wed Aug 29, 2001 11:16 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
Quoted from the MQSI MRM documentation (HTML Help) on the mandatory option ....
You can select either Yes or No. The default is No.
You use this to determine whether or not the element must be present in the message set structure.
The broker will not check that the element does exist.
This property is for documentation purposes only.
[ This Message was edited by: kolban on 2001-08-29 12:16 ] |
|
Back to top |
|
 |
WBI_user |
Posted: Wed Aug 29, 2001 7:35 pm Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
If "The broker will not check that the element does exist. " why is it rejecting the message if the field contains less than 4 integer (for pic 9(04)). My customer is a COBOL shop and have no problem having blanks in the PIC 9 fields. Now MQSI insist that the field must have the number of integers specified. I have to insert 0 s there to make MQSI MRM happy.
|
|
Back to top |
|
 |
|