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
 

 

whether the dataset will create after terminating with rc16

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

New User


Joined: 07 Nov 2006
Posts: 16
Location: banglore

PostPosted: Tue Jun 12, 2007 11:07 am    Post subject: whether the dataset will create after terminating with rc16
Reply with quote

//step1 exec prog=IEFBR14
//DD1 DD DSN= a.b.c, disp=(new,catlg,delete),,,


what will happen when the step completed with RC As 16,
Whether will it create the dataset or not
Back to top
View user's profile Send private message

Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Jun 12, 2007 11:17 am    Post subject:
Reply with quote

have you tried executing this?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Jun 12, 2007 11:43 am    Post subject:
Reply with quote

Or even reading about the DISP parameter in the manual.

Very interesting concept - IEFBR14 issuing anything other than RC0
Back to top
View user's profile Send private message
bansal

New User


Joined: 03 Jan 2007
Posts: 27
Location: Hyderabad

PostPosted: Tue Jun 12, 2007 12:14 pm    Post subject: Re: whether the dataset will create after terminating with r
Reply with quote

First of all, IEFBR14 will always return the 0 return code.

and moreover it is very much clear from the DISP parameter that it will create the dataset , but when it will abend(which in this case will not ), it will delete the dataset.
Back to top
View user's profile Send private message
kavisuresh

New User


Joined: 22 May 2007
Posts: 7
Location: chennai

PostPosted: Tue Jun 12, 2007 3:31 pm    Post subject: Re: whether the dataset will create after terminating with r
Reply with quote

You have to always check the disposition parameter,
disp=(new,catlg,delete)--will delete the dataset under abnormal disposition,If u get a Return code other than 0 the dataset will be deleted.

Option:
If you want the dataset to be catalogued even under abnormal disposition then you can use the below disposition parameter,
disp=(new,catlg,catlg)---Even under return code other than zero the file will be catalogued
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Jun 12, 2007 3:35 pm    Post subject:
Reply with quote

kavisuresh

Please get your facts right before posting.

A return code other than zero is NOT considered an abnormal termination, therefor the third disposition parameter WILL NOT be honoured, and the dataset will be created.
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: Tue Jun 12, 2007 7:21 pm    Post subject:
Reply with quote

Hello,

This
Quote:
disp=(new,catlg,delete)--will delete the dataset under abnormal disposition,If u get a Return code other than 0 the dataset will be deleted.
will never happen on MVS, OS/390, z/OS, etc. Setting a non-zero return does not constitute an abend - which is when the 3rd parameter of DISP is used.

Where did such an idea come from?

Going a bit farther - if IEFBR14 is used, there will be no data - ever. A dataset can be cataloged, but it will have no data in it.

One last bit, IEBR14 will not set a non-zero return code.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 964
Location: Richmond, Virginia

PostPosted: Tue Jun 12, 2007 7:47 pm    Post subject:
Reply with quote

The idea comes from people sloppily using "abend" improperly to mean any failure. I had to deal with this issue with the mainframe support staff at a major credit card company.

They wanted rundoc to indicate actions on abend, and when I did not include actions on various non-zero RC's they rejected my rundoc.

This is just one of may areas where folks need to discipline themselves.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Tue Jun 12, 2007 7:57 pm    Post subject:
Reply with quote

arunpvarier,

IEFBR14 is an IBM utility module which performs two function

-it loads register 15 with a value of 0
-it then does a branch to the address in register 14

Since register 14 is the standard IBM program linkage "return address" register, this immediately returns control to the calling program. And since register 15 is the standard IBM program linkage"return code" register, the return code passed back to the calling program is always 0.

I'm intrested to know how the job generated RC-16, if possible can you please show the JESMSGLG of your JOB with RC-16.

kavisuresh,
Quote:
If you want the dataset to be catalogued even under abnormal disposition then ..

I've never heard about abnormal disposition. What's this ?
Did you want to say abnormal termination?
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 Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am


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