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
 
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: 4650
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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm

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