Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Merging records, but not all the time prino DFSORT/ICETOOL 8 Sat Feb 17, 2018 4:20 pm
No new posts Need all records with high key kalidasvs SYNCSORT 14 Fri Feb 09, 2018 10:38 pm
No new posts Why is SORT rearranging records that ... cschablow DFSORT/ICETOOL 4 Wed Jan 24, 2018 10:14 pm
No new posts Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us