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 

General query on SORT SYNTAX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
spalanis
Beginner


Joined: 19 Jul 2006
Posts: 32
Topics: 15

PostPosted: Fri Dec 08, 2006 12:41 pm    Post subject: General query on SORT SYNTAX Reply with quote

Dear friends,

Is there any difference between the following two statements in the way it executes?.

//STEP020 EXEC PGM=SORT,COND=(0,LT)
and
//STEP020 EXEC SORT,COND=(0,LT)

Please advise.
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: Fri Dec 08, 2006 12:43 pm    Post subject: Reply with quote

spalanis,

//STEP020 EXEC PGM=SORT is invoking the SORT program directly whereas //STEP020 EXEC SORT is invoking a catlagoued procedure named sort which inturn will invoke the pgm sort.

Either way it does not make any difference.

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


Joined: 19 Jul 2006
Posts: 32
Topics: 15

PostPosted: Fri Dec 08, 2006 1:18 pm    Post subject: Reply with quote

Thanks Kolusu!!!
Back to top
View user's profile Send private message
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Wed Jan 10, 2007 9:17 am    Post subject: Reply with quote

Hi Kolusu,
While using EXEC SORT do we need to give STEPLIB?
If yes then would it be the library where my PROC is residing?
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jan 10, 2007 9:32 am    Post subject: Reply with quote

although it does not effect the execution, executing a PROC means you need to investigate (look at it) the PROC to see what symbolics are used, if any, as well as the DD statements' references names for override purposes (e.g. SORTIN, SORTIN1??, SORTOUT, and the control cards - whether they can be overriden or placed in a file for SYSIN).

as with any PROC, you have to look at it (or have documentation) to know how to properly invoke the SORT.

If you use PGM=SORT, then you must insure that your JCL contains all the control cards necessary.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jan 10, 2007 9:47 am    Post subject: Reply with quote

By the way, your title for this thread was very poor. Had nothing to do with SORT Syntax.
_________________
Dick Brenholtz
American living in Varel, Germany
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: Wed Jan 10, 2007 12:22 pm    Post subject: Reply with quote

Quote:
While using EXEC SORT do we need to give STEPLIB?
If yes then would it be the library where my PROC is residing?


You would only need the STEPLIB if it's required for the library containing DFSORT. Normally, the site sets things up so you don't need a STEPLIB to get to DFSORT. But if you do need a STEPLIB for DFSORT, and the SORT PROC does not include that STEPLIB, then you'd need to specify the STEPLIB.
_________________
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
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Feb 08, 2007 11:35 am    Post subject: Reply with quote

Quote:

While using EXEC SORT do we need to give STEPLIB?
If yes then would it be the library where my PROC is residing?


SORT - the program - lives in a program load libray which is referenced by STEPLIB (if necessary). SORT - the procedure - lives in a procedure library (PROCLIB for short). A PROCLIB is an entirely different thing from a STEPLIB - go and browse a member from each and you will see!
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
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 -> Job Control Language(JCL) 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