Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Parsing of XML file into flat file through sort jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
ibmbansal08

New User


Joined: 31 Jul 2012
Posts: 6
Location: India

PostPosted: Mon Oct 08, 2012 7:23 pm    Post subject: Parsing of XML file into flat file through sort jcl
Reply with quote

Hi,

Please help me in solving this problem.

My I/P XML file (RECFM is VB) is :
- <cost type="I" xsi:type="costElementType">
<country>DE</country>
<onshore>true</onshore>
<startdate>2010-10-22</startdate>
<enddate>2015-12-31</enddate>
<offeringname>01K0059</offeringname>
<costvalue uom="USD">130.23</costvalue>
<pricetype>PUR</pricetype>
<costtype>LDP</costtype>
</cost>
- <cost type="I" xsi:type="costElementType">
<country>DE</country>
<onshore>true</onshore>
<startdate>2000-01-02</startdate>
<enddate>2007-12-31</enddate>
<offeringname>8660</offeringname>
<varianttype>FEA</varianttype>
<variantname>A043</variantname>
<costvalue uom="EUR">130.23</costvalue>
<costtype>LDP</costtype>
</cost>

I want the FB output file of LRECL 103 as :

DE true 2010-10-22 2015-12-31 01K0059 USD 130.23 PUR LDP
DE true 2000-01-02 2007-12-31 8660 FEA A043 EUR 130.23 LDP
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1825
Location: UK

PostPosted: Mon Oct 08, 2012 7:53 pm    Post subject:
Reply with quote

2 months ago you were asking almost the same question? Can you not adapt that solution to your present requirement?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Oct 08, 2012 7:53 pm    Post subject: Reply to: Parsing of XML file into flat file through sort jc
Reply with quote

why don' You ask Your IBM colleagues ?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1825
Location: UK

PostPosted: Mon Oct 08, 2012 7:56 pm    Post subject:
Reply with quote

If you really do work for IBM then you have all the help you need within the company. After all, it is IBM's product. All you have to do, at worst, is drop Kolusu an email internally.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Oct 08, 2012 8:01 pm    Post subject: Reply to: Parsing of XML file into flat file through sort jc
Reply with quote

yes he does..
see the comments to the TS previous topics

and Frank Yaeger confirmed some time ago in a private email exchange
that IBM employees are not supposed ( by IBM policy and conduct guidelines)
to ask for help on public forums and should use the IBM Internal resources
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1825
Location: UK

PostPosted: Mon Oct 08, 2012 10:45 pm    Post subject:
Reply with quote

Perhaps, then, the topic should be locked and TS's privileges restricted so that he cannot start a topic.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us