View previous topic :: View next topic
|
Author |
Message |
Deepa Babu
New User
Joined: 11 Sep 2007 Posts: 4 Location: Kochi
|
|
|
|
Hi ,
I am attempting to convert an XML layout to a cobol copy book by using XMLGEN tool. But I am getting a return code 12 saying that there is something wrong with the XML layout. There is one line in the XML schema with length greater than 129 which is the file-length of my dataset with XML code.The line is
<Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNatance" xsi:noNamespaceSchemaLocation=''TransferARProduct v1.0.xsd'' envelopeId="EMI" majorVersion="1" minorVersion="4">
Is there any way that I can split this so that it's length can be reduced to <129 ??
Thanks,
Deepa |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
I don't know, but when I had to deal with that 'internal' XML stuff, I ended up just striping it out with a byte for byte move via reference modification and a nested perform....
BTW, I have no knowledge of XMLGEN...... |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Deepa,
Quote: |
<Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNatance" xsi:noNamespaceSchemaLocation=''TransferARProduct v1.0.xsd'' envelopeId="EMI" majorVersion="1" minorVersion="4"> |
These are nothing but the name space details and why do you need it in the converted COBOL copybook? |
|
Back to top |
|
|
Deepa Babu
New User
Joined: 11 Sep 2007 Posts: 4 Location: Kochi
|
|
|
|
Hi Aaru,
My main objective is to put a message in to a MQ via a COBOL pgm. These lines are the part of the XML file format in which I wud be putting mesages in the q.I should be converting this XML file into COBOL format so that my program can handle it and later on my pgm can generate a similar XML message and put it in the q.If these lines are unimportant, can I truncate some part of it?My XMLGEN tool which does the XML-COBOL Cpybk conversion cannot handle more than 129 characters.
Thanks a lot for your help !!
Deepa |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
deepa,
I have worked on XML-COBOL and vice versa conversions but have never used XMLGEN.
Someone should be able to help you. |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
hard code that string and generate the copybook from the rest of the xml message
That is an XML header message |
|
Back to top |
|
|
Deepa Babu
New User
Joined: 11 Sep 2007 Posts: 4 Location: Kochi
|
|
|
|
Hi ,
Thanks for your help...will try hard coding it
Deepa |
|
Back to top |
|
|
|