Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 & VSAM
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    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

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, 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

Active User


Joined: 10 Mar 2005
Posts: 432
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: 156

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us