Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FDREPORT question

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
pgte3

New User


Joined: 06 Feb 2009
Posts: 11
Location: upstate

PostPosted: Wed Jun 09, 2010 1:24 am    Post subject: FDREPORT question
Reply with quote

I am trying to delete every *.TEST.** dataset on a volume that begins with B, that has not be referenced in the last 120 days.

The LRDAYS>120 parm seems to be ignored, all *.TEST.** old and new are deleted.

Can not seem to get it coded correctly.

I have it coded as follows:

Code:
//FDRDEL   JOB CLASS=S,MSGCLASS=Q                                     
//JOBLIB   DD
//DELSTEP  EXEC PGM=FDREPORT,REGION=0M                               
//SYSPRINT DD SYSOUT=*                                               
//SYSPUNCH DD SYSOUT=(A,INTRDR)                                       
//FDRLIB   DD DSN=TECH.PTE.JCL,DISP=SHR                               
//SYSIN    DD *                                                       
  XSELECT XDSN=*.TEST.**,LRDAYS>120                                           
  XEXCLUDE VOL=(A*,C*,D*,F*,E*,Z*)                       
  PUNCH MASKNAME=FDRDELM,ECHO                                         
  PRINT DATATYPE=CATALOG,RPTYPE=SELPCH


Thanks
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 09, 2010 11:31 am    Post subject:
Reply with quote

I can only assume that the way in which you have presented your statement, that there really is a question in there somewhere. OK, so maybe today IS psychic day ........... so here we go.

I know that using DFdss that the last referenced date is either an absolute or relative date and is dead easy to use. With Dfdss you can also backup and delete at the same time.

However, from some very very old examples in my archive

LRDAYS.GE.(nnn)

Obviously the systax may have changed since my code was last used, but you did check in the manual first .......... didn't you ?
Back to top
View user's profile Send private message
pgte3

New User


Joined: 06 Feb 2009
Posts: 11
Location: upstate

PostPosted: Wed Jun 09, 2010 5:54 pm    Post subject:
Reply with quote

Thanks for the reply expat. Sorry about the ambiguity, I guess I could have should have wrote the sentence "Can not seem to get it coded correctly." as "Can not seem to get it coded correctly, any suggestions on how to coded it correctly".

I will look into the differences of coding LRDAYS.GE.(nnn) vs. LRDAYS>120, on the surface they would seem the same.

The LRDAYS>120 is the technique in the FDR manual.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 09, 2010 6:08 pm    Post subject:
Reply with quote

Well, if all else fails, try DFdss icon_lol.gif
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Tue Aug 17, 2010 1:37 pm    Post subject:
Reply with quote

You are using DATATYPE=CATALOG rather than DATATYPE=VTOC or CATVTOC. The last-reference-date information is in the VTOC not the usercatalog.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fault Analyzer - listings question. egrove IBM Tools 4 Thu Aug 11, 2016 5:31 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts SQL Order By related question Joseph K Thomas DB2 8 Fri Mar 18, 2016 12:53 pm
No new posts DFSort Question krrp DFSORT/ICETOOL 9 Mon Mar 07, 2016 7:11 pm
No new posts Question: REORG on LOB tablespaces rakesh1155 DB2 1 Fri Aug 14, 2015 2:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us