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

whether the dataset will create after terminating with rc16


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Jun 12, 2007 11:43 am
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
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Jun 12, 2007 3:35 pm
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

Moderator Emeritus


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

PostPosted: Tue Jun 12, 2007 7:21 pm
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

Senior Member


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

PostPosted: Tue Jun 12, 2007 7:47 pm
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

Superior Member


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

PostPosted: Tue Jun 12, 2007 7:57 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top