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 MXG - Processing Compressed DB2 SMF r... vasanthz All Other Mainframe Topics 2 Thu May 10, 2018 12:47 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm

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