corrected the job

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

Moderators: chulett, rschirm, roy

iskapalli
Participant
Posts: 76
Joined: Wed Jul 25, 2007 12:36 am

corrected the job

Post by iskapalli »

Hi,

My job is corrected. I am unable to rename and delete the job.

I went through below link. I followed same what they are telling. But It is not working for me.


viewtopic.php?t=113012

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

Post by chulett »

I assume you mean "corrupted" here. And I feel like we came in the middle of a conversation. :?

Start over. Tells us what exactly it is you are experiencing and the error(s) you get. I know you posted a link (which is good) but it would be helpful to know what you tried from it and what "not working for me" means.
-craig

"You can never have too many knives" -- Logan Nine Fingers
srivalli_b
Participant
Posts: 32
Joined: Tue Dec 20, 2011 8:03 am

Post by srivalli_b »

Sorry ,Yes you are right
My job does not contains RT_CONFIG63, RT_STATUS63 files in my project path(/opt/IBM/InformationServer/Server/Projects/project_name).

I created this files(config and status) in project path. I have taken this files from some other RT_config.
srivalli_b
Participant
Posts: 32
Joined: Tue Dec 20, 2011 8:03 am

Post by srivalli_b »

My user id is not working. I am given reply from my friend userid
iskapalli
Participant
Posts: 76
Joined: Wed Jul 25, 2007 12:36 am

Post by iskapalli »

HI,

After executing below commands I am able to delete the job.


DELETE FROM DS_JOB0BJECTS where name='jobname'

DELETE FROM DS_JOB0BJECTS where name='jobname'

my problem is solved.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In the 8.x release? I'm not so sure. And I thought the NAME field was only in DS_JOBS. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
iskapalli
Participant
Posts: 76
Joined: Wed Jul 25, 2007 12:36 am

Post by iskapalli »

yes I am working on 8.5. but small correction.

DELETE FROM DS_JOB0BJECTS where name='jobname'

DELETE FROM DS_JOBS where name='jobname'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Your approach leaves may orphan records in DS_JOBOBJECTS (note, too, that it's a letter "O", not a zero, in the name). You are missing deleting every stage, every link and every annotation.

What you really need is

Code: Select all

DELETE FROM DS_JOBOBJECTS WHERE OBJIDNO = (SELECT JOBNO FROM DS_JOBS WHERE NAME = '<<Job name>>');
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
iskapalli
Participant
Posts: 76
Joined: Wed Jul 25, 2007 12:36 am

Post by iskapalli »

what is mean by orphan records? can you explain clearly
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Records that describe/record the properties of stages, of links, of containers, of annotations.

Get yourself a premium membership and you can read the complete solution in my previous post.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
iskapalli
Participant
Posts: 76
Joined: Wed Jul 25, 2007 12:36 am

Post by iskapalli »

after executing above two commands I have taken copy of the job.
I was able delete the job in designer(including copy of the job). I think there is no entry in ds_objects. please correct me if i am wrong
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You're wrong. For starters the table name is DS_JOBOBJECTS. Secondly, the linkage between DS_JOBS and DS_JOBOBJECTS is through the job number, not the job name.

If you delete the job from Designer, all of the records from DS_JOBOBJECTS are removed. If you delete only the ROOT record from DS_JOBOBJECTS then you leave all the orphans I mentioned previously.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vamsi.4a6
Participant
Posts: 334
Joined: Sun Jan 22, 2012 7:06 am
Contact:

Post by vamsi.4a6 »

1)Could anybody please tell me the procedure how to take the files from some other RT_config and
2)How to view the data in the files like RT_CONFIG63, RT_STATUS63 from unix enviornment?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

1) Not possible.
2) Not possible.

Both can only be performed within the DataStage ("UniVerse") environment.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vamsi.4a6
Participant
Posts: 334
Joined: Sun Jan 22, 2012 7:06 am
Contact:

Post by vamsi.4a6 »

@Ray.Thanks for the Reply. I think we need to execute the following command to access the DataStage ("UniVerse") environment from command prompt.

cd $DSHOME
../dsenv
bin/uvsh

Please correct me if i am wrong?
Post Reply