IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Delete some old records from a file on the basis of the date


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abhi.kunal

New User


Joined: 12 Feb 2007
Posts: 1
Location: bangalore

PostPosted: Wed Jul 25, 2007 12:52 pm
Reply with quote

I want to delete some old records from a file on the basis of the date present in each record and i want to do this by fetching current date from the system and then getting the processing date by deleting some months depending upon my requirement and then comparing this date(current date - some month date) with the date in the records and then proceeding according to the situation.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Wed Jul 25, 2007 1:06 pm
Reply with quote

abhi.kunal

Check the Only include records with today's date Smart DFSORT Trick at

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

If still unresolved, then show the sample set of i/p's and expected o/p's. Clearly showing the FORMAT of the date.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Jul 25, 2007 9:08 pm
Reply with quote

Actually, the "Include records using relative dates" Smart DFSORT Trick would probably be more relevant.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top