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 

Syncsort: Alias for SORTIN DD

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Mon Nov 29, 2004 8:29 am    Post subject: Syncsort: Alias for SORTIN DD Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Nov 29, 2004 8:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Mon Nov 29, 2004 8:42 am    Post subject: Reply with quote

Oh Okay.

Thanks Kolusu,
Phantom
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Nov 29, 2004 10:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Nov 30, 2004 10:24 am    Post subject: Reply with quote

Wow,

This is really nice. Thanks a lot Bill.

Regards,
Phantom
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Tue Nov 30, 2004 11:05 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Nov 30, 2004 11:13 am    Post subject: Reply with quote

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 !...
Wink
Thanks,
Phantom
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Oct 04, 2005 8:13 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Oct 04, 2005 8:32 am    Post subject: Reply with quote

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
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