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: 10626
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 Mainframe datasets without any last r... rajatbagga All Other Mainframe Topics 1 Tue Sep 24, 2019 8:47 am
No new posts Getting space used/allocated for many... JPVRoff CLIST & REXX 10 Mon Apr 15, 2019 12:35 pm
No new posts DUMP A Multi volume datasets and rest... lind sh JCL & VSAM 6 Mon Oct 01, 2018 12:02 pm
No new posts Invoking adrdssu using attchmvs harisukumaran IBM Tools 5 Tue Jun 05, 2018 3:30 am
This topic is locked: you cannot edit posts or make replies. Unavailable RECON datasets while exec... abdulrafi JCL & VSAM 10 Fri Apr 06, 2018 12:45 pm

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