Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Build XML in COBOL 1

Status
Not open for further replies.

kumareshthangavel

Programmer
Jan 30, 2005
7
US
Hi, I am trying to build a XML document from COMMAREA fields in CICS using COBOL DOCUMENT API. I am finding difficulty in buidling this because of 'n' no. of OCCURS clause in the Copybook fields.

DOCTEMPLATE expects input as 'String of data' to build XML document.

Is there any easy way to build this string of data (name=value pair) or diiferent way to handle OCCURS clause?

Thanks,
 
I take it you don't have access to WebSphere?

__________________________________________
Try forum1391 for lively discussions
 
Look at WMK's answer in thread209-1003348.

__________________________________________
Try forum1391 for lively discussions
 
Thanks Dimandja and WMK.

Here, I have Enterprise COBOL v 3.2.1 NO 3.3, and also we dont have Websphere.

The CICS transaction goes like this...originates from CICS Outbound request call SOAP message in HTTP to web service and gets back the response.

Now the problem is in converting COBOL to XML body of SOAP message. I use DOCUMENT API since no enterprice cobol V 3.3 But I have a problem in using this DOCUMENT API, as the copybook has many OCCURS clause. SO I am not sure how this OCCURS clause can put into DOCTEMPLATE. Do we need to create separate Template for each group of OCcurs clause or any other way ?

Pls advice me
 
Somehow, if you are doing XML work in COBOL, I would sure "check with management" to see when you will have Enterprise COBOL V3.3 available.

As that was the MAJOR change between V3.2 and V3.3 (adding XML GENERATE - to the XML PARSE available in 3.2), I just can't see why you wouldn't be getting the latest compiler.

Bill Klein
 
You are right WMK !

Today I had meeting with my client and raised this concern. They might go for it.

Is this freely available from IBM for upgrading from 3.2.1 to 3.3 ?

If they go for upgradation to 3.3, any major implications on system side like recompiling all existing modules or so?
 
1) An upgrade from release to release (e.g. 3.2 to 3.3) is free. (An upgrade from Version to version is usually NOT free, e.g. IBM COBOL for OS/390 & VM to Enterprise COBOL).

2) You might want to check what release of LE the customer is on. I don't think there is any difference between supported levels of LE - but (to be supported by IBM) your customer really need to be on z/OS - rather than OS/390. (This is actually true for all currently supported releases of COBOL)

Bill Klein
 
Hi WMK,

Is there any supporting docs which says that upgrading from Enterprise COBOL V3.2.1 to V 3.3 is free?

Because I need this to show to my customer and go for it.

Thanks for all your help.

Kumaresh T
 
Dimandja !

I'm curious!
What do you mean when you're asking
"I take it you don't have access to WebSphere?"

In what way should Websphere make things different?


 
>In what way should Websphere make things different?

WebSphere was designed to do what you are trying to do. But, it does it for you in the background, so you don't have to grapple with building XML 'manually', or unraveling cumbersome OCCURS structures.

__________________________________________
Try forum1391 for lively discussions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top