Page 1 of 1

Auto deletion of temporary files from Scratch disk

Posted: Tue Sep 25, 2012 11:07 am
by vputta
When ever we run a DS job which has Sort or Join stage, the scratch disk is piled up with many files like below-

-rw------- 1 dsadm dstage 10485720 Sep 21 14:33 tsortGcwTMzbR
-rw------- 1 dsadm dstage 12982320 Sep 21 14:33 tsortGcwoZGVJ
-rw------- 1 dsadm dstage 9986400 Sep 21 14:33 tsortGcwdvLFU

Do we have any option to automatically delete these temporary files from scratch disk,once the job is completed?

Thanks

Posted: Tue Sep 25, 2012 11:15 am
by ArndW
Normally those files are deleted, sometimes when jobs abort some files might remain in the scratch disks. DataStage doesn't have any builtin mechanism to delete these files; I usually go and manually delete the files in Scratch once a week or once a month, depending upon the number and the sizes.

Re: Auto deletion of temporary files from Scratch disk

Posted: Wed Oct 03, 2012 3:59 am
by rohitagarwal15
Sometime we will found such types of files present in our sratch and temporary areas for which ArndW has already stated the reason, its better if you go to these areas manually once in a week and clean all those files so that it will not occupy much more space.

Posted: Thu Oct 04, 2012 6:02 pm
by PaulVL
Sometimes we get files on our scratch disk just like Rohit said that ArndW said.

I recommend following the advice that rohit had, which was to follow the advice as ArndW stated.


:wink: