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 » WebSphere Message Broker (ACE) Support » Basic Question on PIC 9(04)

Post new topic  Reply to topic
 Basic Question on PIC 9(04) « View previous topic :: View next topic » 
Author Message
WBI_user
PostPosted: Tue Aug 28, 2001 9:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
huebi
PostPosted: Wed Aug 29, 2001 1:18 am    Post subject: Reply with quote

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
View user's profile Send private message
WBI_user
PostPosted: Wed Aug 29, 2001 11:08 am    Post subject: Reply with quote

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
View user's profile Send private message
kolban
PostPosted: Wed Aug 29, 2001 11:16 am    Post subject: Reply with quote

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
View user's profile Send private message
WBI_user
PostPosted: Wed Aug 29, 2001 7:35 pm    Post subject: Reply with quote

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
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 » WebSphere Message Broker (ACE) Support » Basic Question on PIC 9(04)
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.