|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
question about mapping cobol to xml |
« View previous topic :: View next topic » |
Author |
Message
|
pfaulkner |
Posted: Fri Apr 11, 2003 10:15 am Post subject: question about mapping cobol to xml |
|
|
Master
Joined: 18 Mar 2002 Posts: 241 Location: Colorado, USA
|
Hi,
I have a COBOL structure that contains a PIC 9(02) field and I am mapping to a field in an XML structure.
Problem is sometime my input msg contains spaces in this field (even though it's defined as numeric). When I try to do the mapping it complains because it is expecting decimal data and doesn't get it.
Is there a way to tell SI to default the value to zeroes when a non numeric is found?
I also use this field in a Occurs Depening on clause so it has to be numeric (and can't be a part of alpha group).
thanks |
|
Back to top |
|
 |
LearnMQSI |
Posted: Mon Apr 21, 2003 3:39 pm Post subject: Data Mapping from XML to FixedLength and vice versa |
|
|
 Centurion
Joined: 20 Aug 2002 Posts: 137
|
Hi There,
I saw your question but I can not answer to your question since I'm new to MQSI. I'm also doing somthing similar. I need to convert an XML file into FixedLength message and FixedLength message into XML.
I appreciate your help and thanx in advance |
|
Back to top |
|
 |
RamVijayawada |
Posted: Tue Apr 22, 2003 12:16 pm Post subject: |
|
|
Novice
Joined: 22 Apr 2003 Posts: 15
|
Hi, U can write esql code , just by checking the incoming value, In the condition check for spaces, if u find spaces u can hard code to zeros...
I believe this helps...  |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|