Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : All available storage is assigned to the job or jobstep, If REGION is coded 0K or 0M

Google
 
Web mainframegurukul.com

using xml namespace in cobol program

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> XML
  View previous topic :: View next topic  
Author Message
tpkumar77
Member


Joined: 13 Jul 2009
Posts: 16

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Dec 23, 2009 11:20 pm    Post subject: using xml namespace in cobol program Reply with quote

Hi

I am using Enterprise COBOL for z/OS 3.4.1.

I have a requirement where in I have to generate an XML file from a flat file.

I have coded the pgm and now the client wants the o/p to be in below format



<oo:confirmReqType xmlns:oo="http://BS_ABC/so/BS_ABC"><AILHEADER><CLIENTID>xxx</CLIENTID></AILHEADER><DOSSIER><DOSSNR>xxxxxxx</DOSSNR><_AE_DOSSIER_STATUS><_AE_CREATIE_DATUM>2009-12-01</_AE_CREATIE_DATUM></_AE_DOSSIER_STATUS><CONTRACT_POLIS><NUMMER>123456789012345</NUMMER><PRODUCT>xxx</PRODUCT><_AE_PARTIJCONTRACTROL><_AE_PARTIJ_VOLGNUM>1</_AE_PARTIJ_VOLGNUM><ENTITEI>VP</ENTITEI><VOLGNUM>1</VOLGNUM></_AE_PARTIJCONTRACTROL></_AE_PERSOON><_AE_ADRES><VOLGNUM >2</VOLGNUM ><PLAATS>Den Haag</PLAATS></_AE_ADRES></PARTIJ><PARTIJ ><VOLGNUM >2</VOLGNUM ><ANAAM >Tester</ANAAM ><TELNUM>0701231234</TELNUM><EMAIL>abc@xyz.com</EMAIL><_AE_ROL>VP</_AE_ROL><_AE_PERSOON ><GEBDAT >1950-01-01</GEBDAT ><GESLACH >M</GESLACH ><TOENAAM >de</TOENAAM ><VOORL >A</VOORL ></_AE_PERSOON ><_AE_ADRES ><VOLGNUM >1</VOLGNUM ><HUISNR > 123</HUISNR ><PCODE >1234AA</PCODE ><PLAATS >Den Haag</PLAATS ><STRAAT>Teststraat</STRAAT><TOEVOEG>a</TOEVOEG><_AE_ADRES_INT><LANDOMS>?</LANDOMS></_AE_ADRES_INT></_AE_ADRES ></PARTIJ ></DOSSIER></oo:confReqType>

I am able to get the entire data except the bold portion.

Could any one pls tell me how can I generate xmlns:oo="http://BS_ABC/so/BS_ABC">[above code ( I could not use the namespace option with XML Generate ,as am using 3.x version of Cobol)
I came across the info that we can use namespace option with GENERATE XML command with cobol ver 4.x and above,but not for versions below 4.
Please..advice..
_________________
Regards,
Kumar
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

tpkumar77
Member


Joined: 13 Jul 2009
Posts: 16

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu Dec 24, 2009 11:31 pm    Post subject: Reply with quote

Thanks frnds.. i got the solution for this query.
I just used MOVE stmt with Ref modification to acheive this.
_________________
Regards,
Kumar
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1631
Location: Mumbai, India

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue Dec 29, 2009 8:08 pm    Post subject: Reply with quote

Thanks for keeping us posted, hope this solution will help some one in near future...Smile
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Feb 03, 2016 11:09 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> XML All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Sticky: MainframeTutorials.com 9 Krishna 25819 Mon Feb 01, 2016 10:12 pm
academyindia4 View latest post
No new posts Query For IEBPTPCH 3 padmajeet.gaikwad 13445 Mon Feb 01, 2016 10:56 pm
academyindia4 View latest post
No new posts Welcome to ibmmainframeguru.com / mainframegurukul.com 3 Krishna 16435 Mon Feb 01, 2016 10:14 pm
academyindia4 View latest post
No new posts Unable to achieve below scenario using ICETOOL 27 sirianangel 33681 Mon Feb 01, 2016 10:01 pm
academyindia4 View latest post
No new posts www.uscareerbank.com 0 prabakarank 8976 Mon Apr 27, 2009 2:59 pm
prabakarank View latest post
 


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-4826.html