IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

XML-Cobol Copybook Conversion


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Deepa Babu

New User


Joined: 11 Sep 2007
Posts: 4
Location: Kochi

PostPosted: Wed May 28, 2008 4:04 pm
Reply with quote

Hi icon_biggrin.gif ,
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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed May 28, 2008 9:48 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu May 29, 2008 9:28 pm
Reply with quote

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
View user's profile Send private message
Deepa Babu

New User


Joined: 11 Sep 2007
Posts: 4
Location: Kochi

PostPosted: Fri May 30, 2008 9:20 am
Reply with quote

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 icon_biggrin.gif !!
Deepa
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Sat May 31, 2008 3:43 am
Reply with quote

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
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Sun Jun 01, 2008 10:08 pm
Reply with quote

hard code that string and generate the copybook from the rest of the xml message

That is an XML header message
Back to top
View user's profile Send private message
Deepa Babu

New User


Joined: 11 Sep 2007
Posts: 4
Location: Kochi

PostPosted: Mon Jun 02, 2008 10:54 am
Reply with quote

Hi ,

Thanks for your help...will try hard coding it icon_smile.gif

Deepa
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top