View previous topic :: View next topic
|
Author |
Message |
boobalamurugan
New User
Joined: 26 Oct 2007 Posts: 4 Location: chennai
|
|
|
|
If i have a file, which contains four records I would like to split the 4 different outputs for each record how to do?
Can anyone explain me? |
|
Back to top |
|
|
Vasukip Currently Banned New User
Joined: 17 Jun 2008 Posts: 48 Location: Chennai
|
|
|
|
Hi,
Try ds Code !
Code: |
//STEPLIB EXEC PGM=SORT
//SORTIN DD *
AAA 123 401
AAA 456 401
BBB 987 411
BBB 123 411
/*
//OUT1 DD DSN=Output File1,DISP=SHR
//OUT2 DD DSN=Output File2,DISP=SHR
//OUT3 DD DSN=Output File3,DISP=SHR
//OUT4 DD DSN=Output File4,DISP=SHR
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=(OUT1,OUT2,OUT3,OUT4),SPLITBY=1
/*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
// |
SPLITBY=N , 'n' no of records will be splited in to output Files. |
|
Back to top |
|
|
boobalamurugan
New User
Joined: 26 Oct 2007 Posts: 4 Location: chennai
|
|
|
|
Its working fine vasukip. |
|
Back to top |
|
|
Vasukip Currently Banned New User
Joined: 17 Jun 2008 Posts: 48 Location: Chennai
|
|
|
|
yw ! |
|
Back to top |
|
|
|