How we can manage the &ph& folder in UNIX system

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
jayeeta_aec
Participant
Posts: 18
Joined: Wed Aug 05, 2009 12:32 am
Location: kolkata

How we can manage the &ph& folder in UNIX system

Post by jayeeta_aec »

Hi,

Can anybody please give me an overview on &ph& folder in the project directory? How can I manage its size as it is supposed to be growing per job run?

Thanks in advance.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The contents of the &PH& subdirectory can be managed by creating an external process that deletes files. You can use cron to schedule a daily run of a command such as "find {path_to_&PH&} -mtime +1 -exec rm {} \;" to remove all files not modified (or created) in the past day.
jayeeta_aec
Participant
Posts: 18
Joined: Wed Aug 05, 2009 12:32 am
Location: kolkata

Post by jayeeta_aec »

ArndW wrote:The contents of the &PH& subdirectory can be managed by creating an external process that deletes files. You can use cron to schedule a daily run of a command such as "find {path_to_&am ...
Thanks mate!!
But could please take up littile burden for me? Please post the command only that you have mentioned.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You could always take up little burden yourself, it's a good learning opportunity. Plenty of references for UNIX commands out there, including how to use 'find' for files of a certain age and then feed the results to other commands (like 'rm') via the '-exec' option.
-craig

"You can never have too many knives" -- Logan Nine Fingers
dganeshm
Premium Member
Premium Member
Posts: 91
Joined: Tue Aug 11, 2009 3:26 pm

Post by dganeshm »

chulett wrote:You could always take up little burden yourself, it's a good learning opportunity. Plenty of references for UNIX commands out there, including how to use 'find' for files of a certain age and then feed the results to other commands (like 'rm') via the '-exec' option.
what would be the disadvantage of a growing &PH& directory?
Regards,
Ganesh
Abhijeet1980
Participant
Posts: 81
Joined: Tue Aug 15, 2006 8:31 am
Location: Zürich
Contact:

Post by Abhijeet1980 »

Slow performance.

Job monitor (via Director).
Job log view (via Director).
Job compilation (via Designer).
Job execution (Via Designer or Director).

Many regards,
Abhijit Gaikwad
Kind regards
Abhijit Gaikwad
Abhijeet1980
Participant
Posts: 81
Joined: Tue Aug 15, 2006 8:31 am
Location: Zürich
Contact:

Post by Abhijeet1980 »

UNIX.

Try using a command that deletes all files older than certain number of days. You decide that number and google it.

Rest can be done using some good book on UNIX.

Many regards,
Abhijit Gaikwad
Kind regards
Abhijit Gaikwad
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

jayeeta_aec wrote:But could please take up littile burden for me? Please post the command only that you have mentioned.
Premium membership is one of the ways that DSXchange's hosting and bandwidth costs are defrayed. It's not expensive, at less than 30c (Rs12) per day, and well worth having.
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