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
 

 

HOW TO DELETE THE EXISTING DATASET USING IEFBR14

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
friend_prasad

New User


Joined: 06 Jan 2006
Posts: 12

PostPosted: Thu Mar 16, 2006 3:34 pm    Post subject: HOW TO DELETE THE EXISTING DATASET USING IEFBR14
Reply with quote

PLS TELL ME HOW TO DELETE THE EXISTING DATASET USING THE IEFBR14 UTILITY
THANKS
Back to top
View user's profile Send private message

friend_prasad

New User


Joined: 06 Jan 2006
Posts: 12

PostPosted: Thu Mar 16, 2006 3:36 pm    Post subject: HOW TO CREATE A DATASET USING COBOL NOT JCL
Reply with quote

HOW TO CREATE A DATASET USING COBOL NOT JCL
PLS REPLY
THANKS
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Thu Mar 16, 2006 4:21 pm    Post subject:
Reply with quote

hi frien _prasd,

//DELETE1 EXEC PGM=IEFBR14
//DD01 DD DSN=urdatasetname,UNIT=SYSDA,
// DISP=(MOD,DELETE,DELETE)


I think this will help u,
thank's
thanooz.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 287
Location: Basel, Switzerland

PostPosted: Thu Mar 16, 2006 8:22 pm    Post subject:
Reply with quote

hy prasad,

generally this is made by specifying the DISP parameter.

if your dataset exists indeed, well code DISP=(OLD,DELETE)

if you are not sure if the dataset exists, then code DISP=(MOD,DELETE),
this means: if exists then it is like DISP=(OLD,DELETE),
if not then MOD is like NEW, therefore you should give at leat
a minimum space amount SPACE=(TRK,1)

note: IEFBR14 gives always RC=0 in register 14,
no matter how the step ends!

martin9
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am


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