View previous topic :: View next topic
|
Author |
Message |
kasi_manickam
New User
Joined: 09 Jun 2005 Posts: 6 Location: CHENNAI
|
|
|
|
Hi,
When we specify file that is not present in IEFBR14 ,THE STEP RUNS FINE AND RC IS 0.
Whether it means it automatically allocate some Space and then delete it or some other reason?
Please let me know. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I don't understand the question. IEFBR14 ALWAYS ends with RC=0. |
|
Back to top |
|
|
mysa_nagesh
New User
Joined: 09 Jun 2005 Posts: 1 Location: Gundala
|
|
|
|
kasi_manickam wrote: |
Hi,
When we specify file that is not present in IEFBR14 ,THE STEP RUNS FINE AND RC IS 0.
Whether it means it automatically allocate some Space and then delete it or some other reason?
Please let me know. |
|
|
Back to top |
|
|
kasi_manickam
New User
Joined: 09 Jun 2005 Posts: 6 Location: CHENNAI
|
|
|
|
Hi,
Sorry For wrongly quoted.
When we specify file that's not present anywhere in storage area ,AND GIVEN AS INPUT TO IEFBR14, it says that it deletes the file and RC IS 0.
EX: //USTEP01 EXEC PGM=IEFBR14
//DD1 DD DISP=(MOD,DELETE),
//DSN=THIS.FILE.NOT.PRESENT
Whether it means it will allocate some space and then delete it ?
Why it always return RC 0,Even file is New?
I hope this time i quoted corectly.
Please let me know the reasons. |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
If the file you try to use in DISP=(MOD,DELETE) does not exist you will have a jcl error and not a RC=0. If you have different case put here your JESYSMSG. |
|
Back to top |
|
|
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 156
|
|
|
|
kasi_manickam wrote: |
Hi,
Sorry For wrongly quoted.
When we specify file that's not present anywhere in storage area ,AND GIVEN AS INPUT TO IEFBR14, it says that it deletes the file and RC IS 0.
EX: //USTEP01 EXEC PGM=IEFBR14
//DD1 DD DISP=(MOD,DELETE),
//DSN=THIS.FILE.NOT.PRESENT
Whether it means it will allocate some space and then delete it ?
Why it always return RC 0,Even file is New?
I hope this time i quoted corectly.
Please let me know the reasons. |
By the JCL that u have showed, the Job will delete the Dataset if it is present and wont delete if it is not present. DISP=(MOD,DELETE) MOD will work in both the situations. If you had given
DISP=(SHR,DELETE,DELETE) and if the file is not present then u would get a JCL ERROR and if it is present then u would get RC=0 and the file wud be deleted.
If you have DISP=(NEW,DELETE,DELETE) and if the DS is not present it will be created and deleted with a RC=0. But if it is present u wud get a JCL ERROR. |
|
Back to top |
|
|
|