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

Null statement in proc


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Sat May 24, 2008 8:07 am
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
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?

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

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

Moderator Emeritus


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

PostPosted: Sat May 24, 2008 8:54 am
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

Superior Member


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

PostPosted: Mon May 26, 2008 12:11 pm
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
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

Superior Member


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

PostPosted: Wed May 28, 2008 12:39 pm
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

Moderator Emeritus


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

PostPosted: Thu May 29, 2008 5:04 am
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

Superior Member


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

PostPosted: Thu May 29, 2008 11:12 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
Search our Forums:

Back to Top