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

When we specify file that is not present in IEFBR14


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kasi_manickam

New User


Joined: 09 Jun 2005
Posts: 6
Location: CHENNAI

PostPosted: Thu Jun 09, 2005 5:34 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Jun 09, 2005 5:04 pm
Reply with quote

I don't understand the question. IEFBR14 ALWAYS ends with RC=0.
Back to top
View user's profile Send private message
mysa_nagesh

New User


Joined: 09 Jun 2005
Posts: 1
Location: Gundala

PostPosted: Thu Jun 09, 2005 5:10 pm
Reply with quote

icon_sad.gif



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
View user's profile Send private message
kasi_manickam

New User


Joined: 09 Jun 2005
Posts: 6
Location: CHENNAI

PostPosted: Thu Jun 09, 2005 5:51 pm
Reply with quote

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
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Jun 09, 2005 9:44 pm
Reply with quote

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
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Thu Jun 09, 2005 10:41 pm
Reply with quote

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
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 Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top