On z/OS 2.1 runing SAS 9.3 I'm attempting to age or delete any obs that are greater than 30 days old off of a sasdb backup file. I've tried using both proc append & proc dataset to accomplish the task, with no positive results. Here's the code using proc dataset. //SASDB DD DISP=OLD,DSN=STRG.RMMRPT.DSNSIZDT.SASDB //BACKUP DD DISP=OLD,DSN=STRG.RMMRPT.DSNSIZDT.SASDB.BACKUP //DELFIL DD DISP=OLD,DSN=STRG.RMMRPT.DSNSIZDT.SASDB.BACKUP.DELFILE //SASLIST DD SYSOUT=* //SYSIN DD * OPTIONS SOURCE SOURCE2; OPTIONS NOCENTER LS=250; PROC CONTENTS DATA=BACKUP.DSNSIZDT; PROC CONTENTS DATA=DELFIL.DSNSIZDT; DATA _NULL_ ; CALL SYMPUT ('DT',PUT(TODAY()-30,DATE9.)) ; PROC DATASETS; LIBNAME BACKUP 'STRG.RMMRPT.DSNSIZDT.SASDB.BACKUP' DISP=OLD; LIBNAME DELFIL 'STRG.RMMRPT.DSNSIZDT.SASDB.BACKUP.DELFILE' DISP=OLD; APPEND BASE=DELFIL.DSNSIZDT DATA=BACKUP.DSNSIZDT ; WHERE DATE GT "'&DT'"D;
... View more