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
 

 

Null statement in proc

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
richie

New User


Joined: 11 Jun 2005
Posts: 24

PostPosted: Sat May 24, 2008 6:12 am    Post subject: Null statement in proc
Reply with quote

Hello all,

Is it possible to code a Null statement in a Proc? If not, why?

Thank you all for your answers.

Regards,
Rich B.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat May 24, 2008 8:07 am    Post subject:
Reply with quote

Hello,

Quote:
Is it possible to code a Null statement in a Proc?
No, it is not possible.

Quote:
If not, why?
It is just one of the rules. Likewise, a proc may not contain "instream" data (i.e. DD * ) or a "/*" statement.
Back to top
View user's profile Send private message
richie

New User


Joined: 11 Jun 2005
Posts: 24

PostPosted: Sat May 24, 2008 8:40 am    Post subject: Thanks for your reply
Reply with quote

Hello Scherrer,

Thanks for your reply.

A quick question though , If its not possible to have a null in a proc , then is the suggestion in the below post Incorrect?

http://ibmmainframes.com/viewtopic.php?t=5444&highlight=null

Regards,
Rich B.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat May 24, 2008 8:54 am    Post subject:
Reply with quote

You're welcome icon_smile.gif

Yes. The suggestion to insert a null into the proc is incorrect.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon May 26, 2008 12:11 pm    Post subject: Re: Null statement in proc
Reply with quote

Hi,
richie wrote:
Is it possible to code a Null statement in a Proc? If not, why?
"Null Statement" would behave as an "end scope terminator" for the JCL, the moment system gets Null Indicator in JCL stream it will not "read" the statements following the Null Indicator. Only those statements which appears before Null Indicator will get exectued.
Back to top
View user's profile Send private message
richie

New User


Joined: 11 Jun 2005
Posts: 24

PostPosted: Mon May 26, 2008 2:17 pm    Post subject:
Reply with quote

Hi Anuj,

Thanks for your reply.

My question is for the Proc .The reasoning could be same though.

Regards,
Rich B.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed May 28, 2008 12:39 pm    Post subject:
Reply with quote

Hi,
Quote:
My question is for the Proc .The reasoning could be same though.
If coded in PROC, syntax check would give you the following advisry message:
Code:
.JAAA     0 DSS1018A - EMBEDDED NULL (//) FOUND, FLUSHING TO END OF PROC


Try to create a dummy PROC, you can check this.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu May 29, 2008 5:04 am    Post subject:
Reply with quote

Hello,

I may have mis-stated previously. . . icon_redface.gif
Quote:
No, it is not possible. . . It is just one of the rules.
It may no longer be "one of the rules". I've been "away" for the last week+ and have not been able to test before posting (always comes back to bite me in the butt. . .).

Long ago, it was a hard/fast rule that a null would throw a jcl error if found while expanding a proc - the job ended immediately. It was also well documented in the jcl manual - after looking thru 2 of the linked jcl manuals, i am not able find it.

Every system i've worked on (since before mvs was invented) included wording in the standards that a null would not be used in production jcl other than as a job stream terminator. I mention this because if the rule has been relaxed/abandoned, they didn't send me the memo icon_smile.gif I should be "back" by sometime next week at the latest and can run a test then.

If anyone does so, i'm sure there is interest in the outcome.

Anuj - was your post from a jem/jscan/jck or an actual execution of a cataloged proc with an embedded null?


FWIW - even if it turns out to be possible, i would surely recommend it not be used.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu May 29, 2008 11:12 am    Post subject:
Reply with quote

Hi Dick,
Quote:
Anuj - was your post from a jem/jscan/jck or an actual execution of a cataloged proc with an embedded null?
It was a result of a JEM.
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 Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
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 -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am


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