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 

Difference between EXEC PGM=SORT & EXEC SORT.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Ram
Beginner


Joined: 12 Jan 2004
Posts: 53
Topics: 12

PostPosted: Wed Jul 07, 2004 11:56 pm    Post subject: Difference between EXEC PGM=SORT & EXEC SORT. Reply with quote

Hi ,

What is the difference if we code the sort statement as

//SORTSTEP EXEC PGM=SORT
//.....
//.....


OR

//SORTSTEP EXEC SORT
//..
//..

Thanks,
Ram Smile
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Jul 08, 2004 4:45 am    Post subject: Reply with quote

Your first example is executing the PROGRAM named SORT. This means that there is a program in an executable library (such as SYS1.LINKLIB) who's name is SORT.

Your second example is executing the PROCEDURE named SORT. This means that there is a cataloged procedure in a procedure library (such as SYS1.PROCLIB) who's name is SORT.

These are two very different statements.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Jul 08, 2004 5:19 am    Post subject: Reply with quote

Ram,
The difference is simple. The first one is running a program SORT and the second is running a catalogued procedure named SORT.

Code:

//SORTSTEP EXEC PGM=SORT


Here you are running the program SORT

Code:

//SORTSTEP EXEC SORT


This statement calls the cataloged or in-stream procedure named SORT.

Check this link for a detailed explanation of EXEC Parameter and read the sections 16.10 & 16.11

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B631/16.0?DT=20030423085347

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
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


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

PostPosted: Thu Jul 08, 2004 9:37 am    Post subject: Reply with quote

DFSORT supplies two catalogued procedures: SORT and SORTD. For more information on these, see:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA00/2.3.1?SHELF=&DT=20031124143823&CASE=
_________________
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
Ram
Beginner


Joined: 12 Jan 2004
Posts: 53
Topics: 12

PostPosted: Thu Jul 08, 2004 9:56 pm    Post subject: Reply with quote

Hi Guys,

A zillion thanks for the prompt reply Very Happy . A big thank you to superk,Kolusu and Frank.

Thanks,
Ram
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