View previous topic :: View next topic |
Author |
Message |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Mon Nov 29, 2004 8:29 am Post subject: Syncsort: Alias for SORTIN DD |
|
|
Hi,
In syncsort (PGM=SORT - not synctool) can we give a different name for the DD SORTIN ? I tried OPTION SORTIN=ddname but this did not work. Is there any other way to give a different DD name for SORTIN and provide it in the sort control card.
Thanks a lot,
Phantom |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Nov 29, 2004 8:32 am Post subject: |
|
|
Phantom,
You cannot override the input(sortin) file DD name when invoking sort via PGM=SORT or PGM=ICEMAN. However you can override the SORTOUT file DD names using OUTFIL
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Mon Nov 29, 2004 8:42 am Post subject: |
|
|
Oh Okay.
Thanks Kolusu,
Phantom |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Mon Nov 29, 2004 10:44 am Post subject: |
|
|
You can use a different DDname by using the DDNAME as follows:
//SORTIN DD DDNAME=BILLIN
//BILLIN DD *
card1
card2
/*
Regards,
Bill Dennis |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Tue Nov 30, 2004 10:24 am Post subject: |
|
|
Wow,
This is really nice. Thanks a lot Bill.
Regards,
Phantom |
|
Back to top |
|
 |
Frank Yaeger Sort Forum Moderator

Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Tue Nov 30, 2004 11:05 am Post subject: |
|
|
For the record: With DFSORT, you can use SORTIN=ddname1 and/or SORTOUT=ddname2 in an OPTION statement in DFSPARM to override the SORTIN and/or SORTOUT ddnames, e.g.
Code: |
//MYIN DD DSN=... input file
//MYOUT DD SYSOUT=*
//DFSPARM DD *
OPTION SORTIN=MYIN,SORTOUT=MYOUT
SORT FIELDS=(..)
/*
|
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Tue Nov 30, 2004 11:13 am Post subject: |
|
|
Thanks a lot Frank,
That is what I tried the first time. I read the DFSORT manual and tried it in syncsort and as expected I was in for surprises !...
Thanks,
Phantom |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Oct 04, 2005 8:13 am Post subject: |
|
|
Quote: |
That is what I tried the first time. I read the DFSORT manual and tried it in syncsort and as expected I was in for surprises !...
|
Phantom,
I beleive that Syncsort z/os 1.1 and higher DOES support the overriding of SORTIN dd as shown by frank.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Tue Oct 04, 2005 8:32 am Post subject: |
|
|
Cool....Its working. 8)
I just tried the following code and it worked fine. We have Syncsort z/OS 1.1 currently.
Code: |
//R010 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//MYIN DD *
A
C
B
D
//MYOUT DD SYSOUT=*
//DFSPARM DD *
OPTION SORTIN=MYIN,SORTOUT=MYOUT
SORT FIELDS=COPY
/*
|
Thanks Kolusu,
But its working only with DFSPARM and not with $ORTPARM. I think this is again for the Migration purposes.
Regards,
Phantom |
|
Back to top |
|
 |
|
|