Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Proc statement is commented out in cataloged procedure

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Proc statement is commented out in cataloged procedure
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    Post subject:
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    Post subject: Reply to: Proc statement is commented out in cataloged proce
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    Post subject:
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: 2433
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 13, 2012 6:21 pm    Post subject:
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: 1800
Location: UK

PostPosted: Fri Jul 13, 2012 8:08 pm    Post subject:
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    Post subject: Reply to: Proc statement is commented out in cataloged proce
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to view the PGM or PROC jackzhang75 CLIST & REXX 11 Tue Jun 20, 2017 1:20 am
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us