Regarding DSUtility

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

vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Regarding DSUtility

Post by vijaykumar »

Hi Gurus,

As this is concerned with different utility iam starting new post, kindly help me.

As my parameters are used by different stages.

How can i know which stage uses particular parameter.i want this to know from my operating system, i mean is there any DSutility which helps me.

kindly can Gurus post that.

cheers;
vijay
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

No. But you can get these information from the Report generated from GUI.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Nothing out of the box. You have to code it.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

Hi Gurus,
Plz gurus help me out with the code.
Can anyone post the code which retrives the information which stage uses particular parameter.

plz Gurus help me out.

cheers;
vijay
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Why do you want to do that using utility, you can just generate report from the designer which will give you a detail report about each stage.The option will be available on the designer toolbar (Internet explorer symbol).
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

Hi Gurus,
This is my requirement, my teamlead wants t o know information from the operating system.

plz help me with this.

cheers;
vijay
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

vijaykumar wrote:This is my requirement, my teamlead wants t o know information from the operating system.
You have a tough Team Lead :!:
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

Hi Gurus,
please help me out .

cheers;
vijay
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

narasimha wrote: You have a tough Team Lead :!:
:lol:
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Why exactly do you want this, or your team lead wants this.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:x I have already given you this solution.

Use dsjob to read the first event from the job run from the job log. This contains all of the parameter values with which the job was started.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

Hi Gurus,
I got all the parameter values with which the job started.

For ex: I have defined 5 parameters in my job.
But iam making use of 3 parameters in Source stage while the transformer stage uses 1 and the target uses 3 parameters.
i want to list the parameters used by particular stage rather than to list the parameters in the entire job.

plz help me.
cheers;
vijay
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

You don't get such specific information w.r.t different stages in the job log.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Now you DO have to write some code. You can write DataStage BASIC code, or you can write C code. The latter is harder to write but easier to call from the command line. The DataStage C API is documented in the Server Job Developer's Guide
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I posted some code which would search @RECORD for any value. I think it would be easy to modify this code to get what you want. It does return the link name. It had either upcase or downcase in the code. If you cannot find it let me know.
Mamu Kim
Post Reply