Deleting instance\jobs\Logs in Director automatically

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

Moderators: chulett, rschirm, roy

CLOPES
Participant
Posts: 52
Joined: Tue Jul 22, 2003 8:05 am
Location: France
Contact:

Deleting instance\jobs\Logs in Director automatically

Post by CLOPES »

Hello Everyone,

i know that using some routines, we can delete job's logs.
But is there a way to delete instances\jobs runs in the director using a keyword that is in the name of the job instead of deleting jobs manually job by job ?
Sometimes i have to delete some runs using a keyword like DC_YYYYMMDD on a job name as JcRun.DC_20130529145400.

Thanks


Carlos
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Are you not leveraging the "Auto Purge" options?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

There's nothing built-in which can do this by instance name wildcard. Either, as Craig suggested obliquely, use the auto-purge functionality or one would need to write a program which identifies the appropriate instances and then deletes log entries for those.
CLOPES
Participant
Posts: 52
Joined: Tue Jul 22, 2003 8:05 am
Location: France
Contact:

Post by CLOPES »

Auto Purge ?

I think i have not expressed well my needs.
I have to purge instances in the director module using a keyword used in the instance name.
Example :

if i have 60 instances by each jobs and 10 jobs, that will do 600 logs in the director.
Each instance have the establishment name and the day run.
I want to delete juste some establishment and for a specific day.
How can i do that without making it manually ?
Last edited by CLOPES on Fri May 31, 2013 7:25 am, edited 1 time in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

CLOPES wrote:I want to delete juste some establishment and for a specific day.
I understood want you wanted, what I don't see right now why you'd "need" to do this kind of selective purge rather than just letting auto purge handle a full day or number of runs. As noted, you'd need to go under the covers and know how to delete records from hashed files to play this game.
-craig

"You can never have too many knives" -- Logan Nine Fingers
CLOPES
Participant
Posts: 52
Joined: Tue Jul 22, 2003 8:05 am
Location: France
Contact:

Post by CLOPES »

The deletion will be demand by functional team and for an establishment\day.
I can't do that automatically, it's on demand.
i know it's a little weard but....

At the present time, i make it manually one by one
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Let's confirm something - are your logs in fact in the hashed files or are they in the XMETA repository? That would depend on your ORLogging/RTLogging settings, in case you're not sure.
-craig

"You can never have too many knives" -- Logan Nine Fingers
CLOPES
Participant
Posts: 52
Joined: Tue Jul 22, 2003 8:05 am
Location: France
Contact:

Post by CLOPES »

don't know.
When i do a rigth click on the instance in the director, it delete what part ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What 8.x version do you have? That will dictate where you find the settings I mentioned which control where the logs live.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Look near the bottom of the DSParams file in the project directory on the DataStage engine. This is where the values that determine the location of logging are stored. One of them is ORLogging. What values do these have?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is no solution that involves a keyword when the job run request is submitted.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
CLOPES
Participant
Posts: 52
Joined: Tue Jul 22, 2003 8:05 am
Location: France
Contact:

Post by CLOPES »

Hello everyone,

Thanks for your feedbacks both.
I'm working on 8.5 version.
Most of the jobs are in server edition.
I don't have access to the server but when i take a log to administrator parameters, all DB2 parameters are empty.
Does it means that all logs are in Universe database ?
As i don't know enough the new version, can i delete jobs using the web admin module ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

CLOPES wrote:I don't have access to the server but when i take a log to administrator parameters, all DB2 parameters are empty.
Sorry but I'm not really sure what that means or what that has to do with job logs.
CLOPES also wrote:can i delete jobs using the web admin module ?
Jobs or job logs?
-craig

"You can never have too many knives" -- Logan Nine Fingers
CLOPES
Participant
Posts: 52
Joined: Tue Jul 22, 2003 8:05 am
Location: France
Contact:

Post by CLOPES »

Hi chulett,

Jobs instances in the director.
Forget about my DB2 note
CLOPES
Participant
Posts: 52
Joined: Tue Jul 22, 2003 8:05 am
Location: France
Contact:

Post by CLOPES »

Hello everyone,

There is no way to delete jobs instances via a routine or another way using a keyword without doing it manually ?

Regards,

Carlos.
Post Reply