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: 288
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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm


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