View previous topic :: View next topic
|
Author |
Message |
chandrasekhar
New User
Joined: 29 Sep 2004 Posts: 35 Location: bangalore
|
|
|
|
Q1. In a catalog procedure PROC statement is mandatory or not??
If not then how we call it.
[/img][/list] |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
Hi chandrasekhar,
If proc statement is not given in catalog procedures then how come it will recognize the Proc name?
So it is required.
Thanks,
Anu |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Please check with the JCL Reference Manual before posting:
Quote: |
Optionally, a cataloged procedure can begin with a PROC statement and end with a PEND statement. If coded, PROC must be the first statement in the procedure.
|
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
Thanks a lot Kevin for correcting me.
So, chandrasekhar Proc statement is optional. Job will recognize the proc by the proc name.
Hope your doubt is clarified. |
|
Back to top |
|
|
chandrasekhar
New User
Joined: 29 Sep 2004 Posts: 35 Location: bangalore
|
|
|
|
Hi friends
Thanks for help to clear my doubt.But still something is left.
you mean if PROC isnot mention then the syntex may be like this. Is it correct???Still a little confussion is here.Need some more guidence.
//myproc
//step1 exec ....
//dd1 dd .....
//
THANKS |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
If you choose not to use the PROC statement at the beginning of a cataloged procedure, then the procedure would look like this:
//PROCSTEP EXEC PGM=
//DD1 DD DSN=...
//DD2 DD DSN=... |
|
Back to top |
|
|
chandrasekhar
New User
Joined: 29 Sep 2004 Posts: 35 Location: bangalore
|
|
|
|
hi superk
Thanks for the answer but one more thing is that how u call a PROCEDURE.Generally we call by it name which is a part of PROC statement.isn't it??But our program does n't contain any such thing.
THANKS |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Chandra,
To invoke an in-stream procedure you use up to 8 positions beginning at pos 3 in the PROC stmt when you code the invoking EXEC stmt.
For a PROC residing in a PDS use the membername of the procedure as created in the PDS. Using the procname in the PROC stmt in this case is just a useful convention, but is not mandatory. |
|
Back to top |
|
|
chandrasekhar
New User
Joined: 29 Sep 2004 Posts: 35 Location: bangalore
|
|
|
|
Thanks to all the member of this forum who help me a lot to understand the concept of PROCEDURE.
THANKS AND REGARDS
chandrasekhar |
|
Back to top |
|
|
|