IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Have a requirement to split a record into different records


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ajayvamsi

New User


Joined: 21 Jul 2005
Posts: 56
Location: Hyderabad

PostPosted: Fri Feb 17, 2006 4:09 pm
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

Global Moderator


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

PostPosted: Fri Feb 17, 2006 4:20 pm
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 Developer


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

PostPosted: Fri Feb 17, 2006 9:40 pm
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

New User


Joined: 21 Jul 2005
Posts: 56
Location: Hyderabad

PostPosted: Sun Feb 19, 2006 12:14 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top