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
 

 

Have a requirement to split a record into different records

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

New User


Joined: 21 Jul 2005
Posts: 56
Location: Hyderabad

PostPosted: Fri Feb 17, 2006 4:09 pm    Post subject: Have a requirement to split a record into different records
Reply with quote

Hi all,
I have a requirement to split a record into different records
ex:
my input file is as follows
aaa bbb ccc ddd
111 222 333 444
now my outfile should be as
aaa
bbb
ccc
ddd
111
222
333
444

will it be possible using sort please suggest me in detail..!!
Thanks,
ajay
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Feb 17, 2006 4:20 pm    Post subject: Re: split
Reply with quote

Use the slash (/) to force a line-feed:
Code:

//SYSIN DD *
  OPTION COPY
  OUTREC FIELDS=(1,3,/,5,3,/,9,3,/,13,3)
/*
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 17, 2006 9:40 pm    Post subject:
Reply with quote

Superk,

/ is not allowed in the OUTREC statement. / can only be used with the OUTFIL statement. So the correct statement would be:

Code:

   OUTFIL OUTREC=(1,3,/,5,3,/,9,3,/,13,3)
Back to top
View user's profile Send private message
ajayvamsi
Currently Banned

New User


Joined: 21 Jul 2005
Posts: 56
Location: Hyderabad

PostPosted: Sun Feb 19, 2006 12:14 pm    Post subject: Re: Have a requirement to split a record into different reco
Reply with quote

Thanks alot it is working fine ...!!

ajay.k
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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm


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