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: 1750
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: 10231
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: 1750
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: 10231
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: 1750
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 Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm


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