Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Delete all empty members of a pds

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kushkush

New User


Joined: 30 Jun 2005
Posts: 25
Location: Germany

PostPosted: Tue Mar 10, 2015 8:46 am    Post subject: Delete all empty members of a pds
Reply with quote

How do i delete all empty members of a pds?
Back to top
View user's profile Send private message

enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10603
Location: italy

PostPosted: Tue Mar 10, 2015 10:50 am    Post subject: Reply to: Delete all empty members of a pds
Reply with quote

does the pds have ISPF stats ?
Back to top
View user's profile Send private message
kushkush

New User


Joined: 30 Jun 2005
Posts: 25
Location: Germany

PostPosted: Tue Mar 10, 2015 11:16 am    Post subject:
Reply with quote

No Enrico, it does not have ISPF stats.
Thanks and cheers to you too.
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10603
Location: italy

PostPosted: Tue Mar 10, 2015 12:08 pm    Post subject: Reply to: Delete all empty members of a pds
Reply with quote

You have two options ...

1) turn on ISPF statistics
write a script which uses LM services , get the lines count, and ...
or sort on lines count and delete by hand

2) read each member to find out if it is EMPTY,
in this case EMPTY might have a broader meaning, ( for example only blank lines )

write a script to process each member , find out if it is empty, and ...

for case 1 search the forum using LMMSTATS, will return a few hits with examples
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 470
Location: London

PostPosted: Wed Mar 11, 2015 2:07 am    Post subject:
Reply with quote

Perhaps stop whatever is creating the empty members from doing that in the first place!

You can't always rely on stat's as depending on how you write the members the stats may not be updated. The 3.5 panel in TSO can reset the stats to show the true number of lines in a member and if it's truly empty it should show 0 and can be safely deleted. There's probably a way to do the 3.5 reset in batch or from a REXX.
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 copy\replace the members in pr... abdulrafi JCL & VSAM 6 Fri Mar 22, 2019 7:02 pm
No new posts How to delete a VSAM dataset from ins... Mike.Fulton JCL & VSAM 6 Fri Feb 15, 2019 5:58 am
No new posts Copy members from Input PDS to Output... Poha Eater JCL & VSAM 9 Tue Jan 29, 2019 3:56 pm
No new posts Delete Multiple rows in chunks by usi... dharmaraok DB2 5 Tue Sep 11, 2018 8:44 pm
No new posts How to delete large data. Mounika Nemani DB2 3 Wed Jun 13, 2018 1:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us