Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 & 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: 4649
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us