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 How to Count a particular record in a... Mounika Nemani DFSORT/ICETOOL 5 Tue May 29, 2018 1:07 pm
No new posts TRAILER3 is creating blank record in ... kodeesm DFSORT/ICETOOL 3 Fri May 18, 2018 5:45 pm
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 VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm

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