What is the correct process to delete &PH& files

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
poorna_76
Charter Member
Charter Member
Posts: 190
Joined: Thu Jul 08, 2004 10:42 am

What is the correct process to delete &PH& files

Post by poorna_76 »

What is the correct process to delete &PH& files from a project.

Windows delete command or delete.file &PH&
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:shock: No, you mean CLEAR.FILE rather than delete.

Clearing the directory is fine as long as you know no jobs are running at the time. None. Otherwise delete from the O/S any files that are over a certain amount of time old, say a day or two. Do that daily.
-craig

"You can never have too many knives" -- Logan Nine Fingers
poorna_76
Charter Member
Charter Member
Posts: 190
Joined: Thu Jul 08, 2004 10:42 am

Post by poorna_76 »

You are correct, I intended to say CLEAR.FILE.
I will do a batch job from Windows to delete.

Thnak you for your quick response.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

CLEAR.FILE can not readily be executed from a BAT file or from an operating system shell. It must be executed from an operating system shell. However, what you can do from a BAT file is delete the files from within the &PH& directory. Be very careful with the ampersands.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply