Posted: Fri May 30, 2003 6:49 am Post subject: Using Default Values in XML to Cobol Conversion
Newbie
Joined: 30 May 2003 Posts: 2
I am working with a message that has many occurs in the Cobol copybook. When I want to transform XML to Cobol, I am trying to find the best way to handle missing Occurances in the input XML.
Here is an example.
01 Order-rec.
05 ITEMS OCCURS 50 times.
10 PRODUCT-CD
10 QUANTITY
....
If the input xml contains only 5 occurances of ITEMS, what is the best way to convert to Cobol without having to set default values for every element under the ITEMS group.
The message I am working with is very large and complex and I am trying to save the effort of having to define default values for each element.
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