View previous topic :: View next topic |
Author |
Message |
maxisnowhere Beginner
Joined: 25 May 2005 Posts: 59 Topics: 20
|
Posted: Wed Apr 04, 2007 9:39 am Post subject: split file with more then a record |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Apr 04, 2007 9:44 am Post subject: |
|
|
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 |
|
|
maxisnowhere Beginner
Joined: 25 May 2005 Posts: 59 Topics: 20
|
Posted: Wed Apr 04, 2007 9:49 am Post subject: |
|
|
You are my Hero!!!!
thanks a lot!!!!! _________________ Maxisnowhere |
|
Back to top |
|
|
|
|