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: 1788
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: 10256
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: 1788
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: 10256
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: 1788
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
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am


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