View previous topic :: View next topic |
Author |
Message |
Ram Beginner
Joined: 12 Jan 2004 Posts: 53 Topics: 12
|
Posted: Wed Jul 07, 2004 11:56 pm Post subject: Difference between EXEC PGM=SORT & EXEC SORT. |
|
|
Hi ,
What is the difference if we code the sort statement as
//SORTSTEP EXEC PGM=SORT
//.....
//.....
OR
//SORTSTEP EXEC SORT
//..
//..
Thanks,
Ram |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Jul 08, 2004 4:45 am Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
|
Posted: Thu Jul 08, 2004 5:19 am Post subject: |
|
|
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 |
|
|
Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
|
Back to top |
|
|
Ram Beginner
Joined: 12 Jan 2004 Posts: 53 Topics: 12
|
Posted: Thu Jul 08, 2004 9:56 pm Post subject: |
|
|
Hi Guys,
A zillion thanks for the prompt reply . A big thank you to superk,Kolusu and Frank.
Thanks,
Ram |
|
Back to top |
|
|
|
|