lordsmiter
Programmer
Hi,
I have a troubling issue that I have researched heavily and keep coming up with dead ends. We are migrating an XML process to the mainframe using the new COBOL statements in Version 3 Release 3. Right now it is multi-platform (mainframe to windows server via websphere) and it is not yielding the performance we need.
My problem is that when generating an XML document from our COBOL copybook (XML-GENERATE), the resulting XML document tags must contain underscores "_" in the resulting names. Now since the XML document tags are generated using the data structure names that I build in COBOL, it would dictate that the data names in COBOL would need to contain underscores. This does not compile so well. There must be a way to get underscores in COBOL data names. I would need something like this in COBOL:
01 XML_Document.
05 Tag_1 PIC X(05).
05 Tag_2 PIC X(05).
After I populate this and run XML-GENERATE, it should produce this:
<XML_Document>
<Tag_1>12345</Tag_1>
<Tag_2>12345</Tag_2>
</XML_Document>
Obviously I can't get past compile with that data structure though. Is this a system limitation? Any ideas on how I may get this to happen in COBOL? I am clueless as well as the Development Center where I work.
Thanks in advance!
Jason
I have a troubling issue that I have researched heavily and keep coming up with dead ends. We are migrating an XML process to the mainframe using the new COBOL statements in Version 3 Release 3. Right now it is multi-platform (mainframe to windows server via websphere) and it is not yielding the performance we need.
My problem is that when generating an XML document from our COBOL copybook (XML-GENERATE), the resulting XML document tags must contain underscores "_" in the resulting names. Now since the XML document tags are generated using the data structure names that I build in COBOL, it would dictate that the data names in COBOL would need to contain underscores. This does not compile so well. There must be a way to get underscores in COBOL data names. I would need something like this in COBOL:
01 XML_Document.
05 Tag_1 PIC X(05).
05 Tag_2 PIC X(05).
After I populate this and run XML-GENERATE, it should produce this:
<XML_Document>
<Tag_1>12345</Tag_1>
<Tag_2>12345</Tag_2>
</XML_Document>
Obviously I can't get past compile with that data structure though. Is this a system limitation? Any ideas on how I may get this to happen in COBOL? I am clueless as well as the Development Center where I work.
Thanks in advance!
Jason