Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
When we specify file that is not present in IEFBR14

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
kasi_manickam

New User


Joined: 09 Jun 2005
Posts: 6
Location: CHENNAI

PostPosted: Thu Jun 09, 2005 5:34 am    Post subject: When we specify file that is not present in IEFBR14
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
References
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3316
Location: Charlotte,NC USA

PostPosted: Thu Jun 09, 2005 5:04 pm    Post subject: Re: IEFBR14
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    Post subject: Re: reagrding IEFBR14 STEP.
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    Post subject: reagrding IEFBR14 STEP.
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

Moderator


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

PostPosted: Thu Jun 09, 2005 9:44 pm    Post subject:
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: 154

PostPosted: Thu Jun 09, 2005 10:41 pm    Post subject: Re: reagrding IEFBR14 STEP.
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1