MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

split file with more then a record

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
maxisnowhere
Beginner


Joined: 25 May 2005
Posts: 59
Topics: 20

PostPosted: Wed Apr 04, 2007 9:39 am    Post subject: split file with more then a record Reply with quote

Hi Guys,

I'have a problem, maybe you can help me.

I've a file and I want to split in 2 files, one with files with only one record, and the other with all multile record.

For example my file is

AA11
AA22
AA33
BB11
CC11
DD11
DD22
EE11
FF11

I want an output the single record:

BB11
CC11
EE11
FF11

And an other output for the multiple record:

AA11
AA22
AA33
DD11
DD22

Can you help me?

Have a good one!
_________________
Maxisnowhere
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Apr 04, 2007 9:44 am    Post subject: Reply with quote

maxisnowhere,

Try this

Code:

//STEP0100 EXEC PGM=ICETOOL                             
//TOOLMSG  DD SYSOUT=*                                   
//DFSMSG   DD SYSOUT=*                                   
//IN       DD *                                         
AA11                                                     
AA22                                                     
AA33                                                     
BB11                                                     
CC11                                                     
DD11                                                     
DD22                                                     
EE11                                                     
FF11                                                     
//UNQ      DD SYSOUT=*                                   
//DUPS     DD SYSOUT=*                                   
//TOOLIN   DD *                                         
  SELECT FROM(IN) TO(UNQ) ON(1,2,CH) NODUPS DISCARD(DUPS)
/*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
maxisnowhere
Beginner


Joined: 25 May 2005
Posts: 59
Topics: 20

PostPosted: Wed Apr 04, 2007 9:49 am    Post subject: Reply with quote

You are my Hero!!!!

thanks a lot!!!!!
_________________
Maxisnowhere
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group