IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can IDCAMS utility empty a PS?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kaleelahamed

New User


Joined: 08 Jun 2006
Posts: 45
Location: Trumbull, CT

PostPosted: Thu Apr 30, 2009 8:05 am
Reply with quote

Hi,

I have seen in our JCL where a file will be deleted by the following SYSIN while using PGM=IDCAMS

DELETE N5046.TESTING.TESTING SCRATCH NONVSAM


Can we use IDCAMS to empty the contents of the above file instead of deleting it?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 30, 2009 8:08 am
Reply with quote

REPRO from a DD DUMMY to the sequential file.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Apr 30, 2009 8:09 am
Reply with quote

Hi,

the answer is yes, just REPRO a DUMMY file into the FILE you want emptied.


Gerry
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Apr 30, 2009 8:10 am
Reply with quote

Robert, you are too quick


Gerry
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 30, 2009 4:58 pm
Reply with quote

Quote:
Robert, you are too quick
Gerry
That's not what my wife tells me ..... icon_smile.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 30, 2009 5:01 pm
Reply with quote

Robert Sample wrote:
Quote:
Robert, you are too quick
Gerry
That's not what my wife tells me ..... icon_smile.gif

What do you mean "How was it for you ?" icon_lol.gif icon_lol.gif icon_lol.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri May 01, 2009 4:53 am
Reply with quote

Hi Robert,

Quote:
That's not what my wife tells me .....



Just dream on icon_lol.gif


Gerry
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri May 01, 2009 5:57 am
Reply with quote

What can I say? Practice makes perfect. icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts REASON 00D70014 in load utility DB2 6
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Insert trailer for non empty file only DFSORT/ICETOOL 6
No new posts EMPTY file check scenario JCL & VSAM 6
No new posts Any JCL or VSAM Utility to get number... JCL & VSAM 1
Search our Forums:

Back to Top