View previous topic :: View next topic
|
Author |
Message |
arunpvarier
New User
Joined: 07 Nov 2006 Posts: 16 Location: banglore
|
|
|
|
//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 |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
have you tried executing this? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Or even reading about the DISP parameter in the manual.
Very interesting concept - IEFBR14 issuing anything other than RC0 |
|
Back to top |
|
|
bansal
New User
Joined: 03 Jan 2007 Posts: 27 Location: Hyderabad
|
|
|
|
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 |
|
|
kavisuresh
New User
Joined: 22 May 2007 Posts: 7 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
|