Deleting PS but no PO Dataset



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Deleting PS but no PO Dataset

Postby samb01 » Mon Aug 06, 2018 6:33 pm

Hello, i have a listing of dataset. But i can't know which is partitionned and whiuch is not.
Is there any option to idcams to delete only PS dataset et not PO.
Actually, i did this :


//DEL   EXEC PGM=IDCAMS                          
//SYSPRINT DD SYSOUT=*                          
//SYSIN    DD *                                  
 DELETE DATASET.A            
 DELETE DATASET.B            
 DELETE DATASET.C
 


But if DATASET.B is a PO Dataset, i don't it to be deleted..

If DELETE DATASET.A and DELETE DATASET.C are PS Dataset, i want it to be deleted..
samb01
 
Posts: 292
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Deleting PS but no PO Dataset

 

Re: Deleting PS but no PO Dataset

Postby enrico-sorichetti » Mon Aug 06, 2018 7:47 pm

use dfdss
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2775
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 147 times

Re: Deleting PS but no PO Dataset

Postby samb01 » Mon Aug 06, 2018 8:38 pm

samb01
 
Posts: 292
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post