IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Proc statement is commented out in cataloged procedure


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Tue Jul 10, 2012 4:33 pm
Reply with quote

Hi All,

It may sound weird, but today I saw a proc in our production library which has the proc statement commented out.

Code:
//**PXXX123 PROC 


I was wondering why? Is it ok not to have the proc keyword in cataloged procedure? It seems that while expanding JCL system only looks for the member name in proc library.
Back to top
View user's profile Send private message
Peter cobolskolan

Active User


Joined: 06 Feb 2012
Posts: 104
Location: Sweden

PostPosted: Tue Jul 10, 2012 4:36 pm
Reply with quote

Your assumption is correct, but there is no need to comment out or remove the proc/pend statements. This just makes life more complicated!
Back to top
View user's profile Send private message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Wed Jul 11, 2012 12:59 pm
Reply with quote

Thanks Pete !!
Back to top
View user's profile Send private message
Sunilp_cse

New User


Joined: 02 Jul 2012
Posts: 7
Location: INDIA

PostPosted: Fri Jul 13, 2012 5:59 pm
Reply with quote

Hi all,
Make sure If member is not there then we can make it as comment other wise it throws abend error s806 icon_biggrin.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 13, 2012 6:21 pm
Reply with quote

Sunilp_cse wrote:
Hi all,
Make sure If member is not there then we can make it as comment other wise it throws abend error s806 icon_biggrin.gif


We are talking here about procedures, not load libraries.
A missing procedure will result in a jcl error.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri Jul 13, 2012 8:08 pm
Reply with quote

And nothing on the mainframe 'throws' an error - well, unless it is written in JAVA or C++
Back to top
View user's profile Send private message
parsesource

New User


Joined: 06 Feb 2006
Posts: 97

PostPosted: Sat Jul 14, 2012 8:13 pm
Reply with quote

if you have a proc without a PROC Statement in proclib (only possible if you have no default values set within proc) it´s possible to use the member either as PROC or as INCLUDE. so maybe it was commented out to add flexibility?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
Search our Forums:

Back to Top