Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
XML-Cobol Copybook Conversion

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: XML-Cobol Copybook Conversion
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: 2150
Location: At my coffee table

PostPosted: Wed May 28, 2008 9:48 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Thu May 29, 2008 9:28 pm    Post subject: Reply to: XML-Cobol Copybook Conversion
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Sat May 31, 2008 3:43 am    Post subject: Reply to: XML-Cobol Copybook Conversion
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    Post subject:
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    Post subject: Reply to: XML-Cobol Copybook Conversion
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us