XML errors in COBOL.

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Piggy Chop
Registered Member
Posts: 13
Joined: Sat Feb 08, 2014 1:58 pm

XML errors in COBOL.

Post by Piggy Chop »

Hi,

I'm at a new comapny and they are using COBOL and XML parser but there are errors in that, looks like. Pretty often they have some errors because of missing fields and tags. Then they download the mainframe files, run it through to a third party tool (XMLSpy), identifies the error and according to this they updat the DB2 table using which the original file was created.

The question is this involves a lot of manual effort, what is the best way to deal with such scenarios. Please share your thoughts.
User avatar
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 855
Joined: Wed Sep 11, 2013 3:57 pm

Re: XML errors in COBOL.

Post by enrico-sorichetti »

Pretty often they have some errors because of missing fields and tags.
XML format errors ( E.G unbalanced tags )
or application logic error ( EG. missing <tag>data</tag> )

why not reach an agreement with the provider of the data and FORCE them to provide good data ???
in the IT data chain ( or in any product chain ) the provider is RESPONSIBLE of the quality(goodness) of the data/product provided
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Piggy Chop
Registered Member
Posts: 13
Joined: Sat Feb 08, 2014 1:58 pm

Re: XML errors in COBOL.

Post by Piggy Chop »

Thanks for the reply enrico.
XML format errors ( E.G unbalanced tags )
or application logic error ( EG. missing <tag>data</tag> )
They have both kinds of errors.
why not reach an agreement with the provider of the data and FORCE them to provide good data ???
in the IT data chain ( or in any product chain ) the provider is RESPONSIBLE of the quality(goodness) of the data/product provided
That's a good suggestion and I'll investigate on how the data is loaded in DB2 table at first.
User avatar
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 855
Joined: Wed Sep 11, 2013 3:57 pm

Re: XML errors in COBOL.

Post by enrico-sorichetti »

at least You could make them provide FORMALLY correct data
so that that the program needs only to care about the application logic
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Piggy Chop
Registered Member
Posts: 13
Joined: Sat Feb 08, 2014 1:58 pm

Re: XML errors in COBOL.

Post by Piggy Chop »

Actually, I'm thiking if we can use some schema against the data?
Post Reply Previous topicNext topic

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Other Mainframe Topics, Off-Topics, FAQs.”