How to can we get the details of a stage via unix

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
saj
Participant
Posts: 30
Joined: Fri Aug 28, 2009 6:00 am

How to can we get the details of a stage via unix

Post by saj »

Hi All ,
I want to know how we can get the stage names via unix commands .
I tried dsjob -lstages <project> <JobName>
But it is not providing exact info .
For eg it is not providing the oracle stage info .

Is there any other way to identify the same ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That is the way. What exactly do you mean by "it is not providing the oracle stage info"?
-craig

"You can never have too many knives" -- Logan Nine Fingers
saj
Participant
Posts: 30
Joined: Fri Aug 28, 2009 6:00 am

Post by saj »

I have four stages .
Source is Oracle stage.From oracle stage we are loading the data into a hash file and from there via transformer into target table which is again a oracle table .

But when I fire this command it is not providing the source oracle info .
And for hash file it is giving with ".IDENT" extension .
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Add a transformer between the source Oracle stage and the hashed file, see if that helps.
-craig

"You can never have too many knives" -- Logan Nine Fingers
saj
Participant
Posts: 30
Joined: Fri Aug 28, 2009 6:00 am

Post by saj »

The job is running fine . Issue is when I fire the dsjob lstages project jobaname command in unix it is not providing the stage names ..
fmou
Participant
Posts: 124
Joined: Sat May 28, 2011 9:48 pm

Post by fmou »

Define "fine". chulett asked you to add a transformer, did you see that stage or not?
saj
Participant
Posts: 30
Joined: Fri Aug 28, 2009 6:00 am

Post by saj »

Yes , I am able to see the transformer..
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'm lost... did you add the second transformer or not? If you did, did the list of stages work properly? I'm not expecting it to change the behaviour of the job itself, I'm hoping that adding it lets "-lstages" see everything.
-craig

"You can never have too many knives" -- Logan Nine Fingers
saj
Participant
Posts: 30
Joined: Fri Aug 28, 2009 6:00 am

Post by saj »

I added a second transformer . It is showing the transformer but not the oracle stages .....
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Read about DSGetJobInfo() in the DataStage BASIC manual. There are different options to return different sets of stages; the default gives only the active stages. The dsjob -lstages command gives effect to this default. You can always modify the dsjob code.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
saj
Participant
Posts: 30
Joined: Fri Aug 28, 2009 6:00 am

Post by saj »

Ray ,
Can you please tell me where this information is present in the sever?
I mean which path ?

And how to retrieve this?

Since dsjob -lstages will be accessing some data which is present in the unix server ..

Any help will be appreciated greatly..
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

saj wrote:It is showing the transformer but not the oracle stages .....
Sorry, forgot that it only shows active stages.
-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 »

Code: Select all

SELECT NAME FROM DS_JOBOBJECTS WHERE OBJNAME LIKE 'V%S%' AND OBJNAME NOT LIKE 'V%S%P%' AND OBJIDNO = (SELECT JOBNO FROM DS_JOBS WHERE NAME = '<<JobName>>');
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