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
 

 

Can IDCAMS utility empty a PS?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can IDCAMS utility empty a PS?
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: 8124
Location: East Dubuque, Illinois, USA

PostPosted: Thu Apr 30, 2009 8:08 am    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Apr 30, 2009 8:09 am    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Apr 30, 2009 8:10 am    Post subject:
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: 8124
Location: East Dubuque, Illinois, USA

PostPosted: Thu Apr 30, 2009 4:58 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 30, 2009 5:01 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Fri May 01, 2009 4:53 am    Post subject:
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: 8124
Location: East Dubuque, Illinois, USA

PostPosted: Fri May 01, 2009 5:57 am    Post subject:
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    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 How to Use DebugTool CodeCoverage Uti... neo4u IBM Tools 0 Thu Jun 22, 2017 6:38 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


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