cl

pts.
Tags:
CL
CL programming
Hi 1.I need a cl code that will purge text files that are more than 3 months old...text files will be created with the date of creation suffixed to the filename... 2.If the above is not possible will i be able to create flat file members and purge those file members.

Answer Wiki

Thanks. We'll let you know when a new response is added.

The DLTF command will accept a generic value like
DLTF IN200803*
which could be used to delete all the files beginning with IN for year 2008 month 03

The string could be built…
by retrieving the current system value
doing a little substringing
moving month and year to numeric fields
subtracting 3 from month
if negative subtract 1 from year add 12 to month
building them back into a string.

Phil

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following