Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
ADRDSSU BY(REFDT... not selecting correct datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
Greg Roschel

New User


Joined: 11 Sep 2019
Posts: 2
Location: USA

PostPosted: Wed Sep 18, 2019 7:23 pm    Post subject: ADRDSSU BY(REFDT... not selecting correct datasets
Reply with quote

I am attempting to delete all temp datasets where the last referenced date is at least 90 days old in storage group XXTEMP by executing ADRDSSU with the following command:

DUMP STORGRP(XXTEMP) -
DATASET -
( -
EXCLUDE(SYS1.VTOCIX.** -
SYS1.VVDS.**) -
BY((REFDT,LT,*,-90)) -
) -
DELETE -
PURGE -
OUTDD(SGPRINT)

At the present, I am running with PARM='TYPRUN=NORUN' until I get this working correctly. This is under z/OS v2r2.

The results I'm getting are not what I expected. The datasets being selected by ADRDSSU are today's datasets only. No matter what "*,-n" I select, I get today's datasets only.

Yes, I RTFM'd & practically every mainframe web site I could find. I tried using spaces, then commas in the BY statement. I tried using more parentheses, less parentheses. I tried everything I could thing of but am unable to figure out what I'm doing wrong.

Any help/suggestions would be greatly appreciated.
Back to top
View user's profile Send private message

enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10664
Location: italy

PostPosted: Wed Sep 18, 2019 10:05 pm    Post subject:
Reply with quote

Code:
BY( REFDT LT (*,-xxxx) )

used to work for me
Back to top
View user's profile Send private message
Greg Roschel

New User


Joined: 11 Sep 2019
Posts: 2
Location: USA

PostPosted: Wed Sep 18, 2019 10:40 pm    Post subject: Reply to: ADRDSSU BY(REFDT... not selecting correct datasets
Reply with quote

I've tried that and many more variations of it, all to no avail. Thanks for the reply.
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 -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare Two datasets and get the 1st ... ArunkumarGanesan DFSORT/ICETOOL 7 Fri Mar 27, 2020 2:00 am
No new posts Need a Macro to compare datasets and ... Anupam Nayak All Other Mainframe Topics 2 Mon Feb 17, 2020 4:45 pm
No new posts adrdssu for copy all data robyjhl JCL & VSAM 5 Tue Nov 12, 2019 11:17 pm
No new posts adrdssu tool to dump a files from a PDS Kannan Ramalingam JCL & VSAM 5 Fri Nov 01, 2019 6:25 pm
No new posts Mainframe datasets without any last r... rajatbagga All Other Mainframe Topics 1 Tue Sep 24, 2019 8:47 am

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