View previous topic :: View next topic
|
Author |
Message |
Phoenix
New User
Joined: 27 Feb 2007 Posts: 20 Location: Chennai
|
|
|
|
Hi,
I am using SYNCSORT for copying 4 files to 4 seperate files in the same order with no editing or sorting in a single step.
For e.g.
Inputfiles are suppose: A , B, C, D, ......
and outpput files are suppose : P, Q, R, S, .......
i want to copy A to P, B to Q, C to R, and so on in a single SYNCSORT step
But i am not able to get the exact syntax for it, in DFSORT it can be done by using seperate controlcards for each input file. Like this:
SORT FIELDS=COPY,EQUALS
COPY FROM(SORTIN01) TO(SORT01) USING(CTL1)
COPY FROM(SORTIN02) TO(SORT02) USING(CTL2)
COPY FROM(SORTIN03) TO(SORT03) USING(CTL3)
COPY FROM(SORTIN04) TO(SORT04) USING(CTL4)
But i need the corrosponding syntax for SYNCSORT.
Any help would be appreciated.
Cheers.
phoenix.
[/code] |
|
Back to top |
|
|
jaspal
New User
Joined: 22 May 2007 Posts: 68 Location: mumbai
|
|
|
|
HI ,
i thing this will help you
Code: |
//JS010 EXEC PGM=MULTIGEN,
// PARM='NOOV',
// REGION=1024K
//*
//SYSUT1 DD DSN=A,DISP=SHR
//SYSUT2 DD DSN=P,
// DISP=(NEW,CATLG,DELETE),
// DATACLAS=HUGE,
// RECFM=FB,
// LRECL=1866,
// BLKSIZE=0,
// UNIT=SYSDA
//SYSUT3 DD DSN=B,DISP=SHR
//SYSUT4 DD DSN=Q,
// DISP=(NEW,CATLG,DELETE),
// DATACLAS=HUGE,
// RECFM=FB,
// LRECL=1866,
// BLKSIZE=0,
// UNIT=SYSDA
//SYSUT5 DD DSN=C,DISP=SHR
//SYSUT6 DD DSN=R,
// DISP=(NEW,CATLG,DELETE),
// DATACLAS=HUGE,
// RECFM=FB,
// LRECL=1866,
// BLKSIZE=0,
// UNIT=SYSDA
//SYSOUT DD SYSOUT=*
//*
|
|
|
Back to top |
|
|
Phoenix
New User
Joined: 27 Feb 2007 Posts: 20 Location: Chennai
|
|
|
|
Hi,
In our shop we do not use this utiility.
Code: |
//JS010 EXEC PGM=MULTIGEN,
|
So if you can suggest something in SYNCSORT or somthing general it might be helpful.
Thanks.
Cheers,
Phoenix. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
in DFSORT it can be done by using seperate controlcards for each input file. Like this:
SORT FIELDS=COPY,EQUALS
COPY FROM(SORTIN01) TO(SORT01) USING(CTL1)
COPY FROM(SORTIN02) TO(SORT02) USING(CTL2)
COPY FROM(SORTIN03) TO(SORT03) USING(CTL3)
COPY FROM(SORTIN04) TO(SORT04) USING(CTL4)
|
For the record, the syntax shown is more complex than it needs to be for DFSORT's ICETOOL. You could use:
Code: |
COPY FROM(SORTIN01) TO(SORT01)
COPY FROM(SORTIN02) TO(SORT02)
COPY FROM(SORTIN03) TO(SORT03)
COPY FROM(SORTIN04) TO(SORT04)
|
|
|
Back to top |
|
|
|
|