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
 

 

How to reconstruct comma-delimited records

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

New User


Joined: 13 Dec 2006
Posts: 73
Location: Hyderabad

PostPosted: Fri Feb 01, 2008 10:42 am    Post subject: How to reconstruct comma-delimited records
Reply with quote

Hi,

My inputfile LRECL is 300 & FB and file is like

"1234'',100.4676,"USD","730857AA7","US730857AA79","6/15/2014",
"pNT0",5.1250000000,"EUR","B0A0HFU03","XS0181273342","1/27/2014",
"NT00",0.0000000000,"USD","852863AB5","US852863AB56","2/15/2015",
"NT11",0.0000000000,,,"852863AB5","US852863AB56","2/15/2015",

I need only the 1st & 5th fileds in output. i need output like this

1234 US730857AA79
pNT0 XS0181273342
NT00 US852863AB56
NT11 US852863AB56

Thanks,
Avan
Back to top
View user's profile Send private message

krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Fri Feb 01, 2008 10:55 am    Post subject:
Reply with quote

Look at "Deconstruct and reconstruct CSV records " in Smart DFSORT Tricks at

http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
Back to top
View user's profile Send private message
avaneendra_linga

New User


Joined: 13 Dec 2006
Posts: 73
Location: Hyderabad

PostPosted: Fri Feb 01, 2008 5:37 pm    Post subject: Reply to: How to reconstruct comma-delimited records
Reply with quote

HI Kris,

My mainframe is not supporting PARSE. Please give any other options
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Fri Feb 01, 2008 6:05 pm    Post subject: Re: Reply to: How to reconstruct comma-delimited records
Reply with quote

avaneendra_linga wrote:
HI Kris,

My mainframe is not supporting PARSE. Please give any other options
Are ur fields in the i/p file at fixed positions?
If not then its not possible!!
Are u using SYNCSORT or DFSORT?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Feb 01, 2008 10:29 pm    Post subject:
Reply with quote

Quote:
My mainframe is not supporting PARSE


You mean your sort product does not support PARSE. If you have DFSORT, then you need z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 in order to use PARSE. This PTF has been available since April, 2006. Ask your System Programmer to install it (it's free).
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 Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm


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