DSGetCustInfo Usage

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

Post Reply
karmadasai
Participant
Posts: 3
Joined: Mon May 29, 2006 1:24 pm

DSGetCustInfo Usage

Post by karmadasai »

I would like to keep information about a ORAOCI Stage , I need the SQL string defined by the user.


Do you have exemples with the DS function :

Code: Select all

DSGetCustInfo(JobHandle, StageName, CustInfoName, InfoType)
* Possible Var InfoType tokens:
  Equ DSJ.CUSTINFOVALUE            To 1  ;* Cust Info value
  Equ DSJ.CUSTINFODESC             To 2  ;* Cust Info description
  Equ DSJ.CUSTINFOPERINST          To 3  ;* Is custinfo per instance
When I use it , the job never stop ....
karmadasai.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DSGetCustInfo() is only for parallel jobs. You can get a list of the custom properties of a stage from DSGetStageInfo() - for a parallel job, of course - and then use DSGetCustInfo() to get the value and description of each.

Do not use DSGetCustInfo() with server jobs. They may enter an indefinite (infinite?) loop.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
karmadasai
Participant
Posts: 3
Joined: Mon May 29, 2006 1:24 pm

Post by karmadasai »

Do you have a solution for Server Job ?
ray.wurlod wrote:DSGetCustInfo() is only for parallel jobs. You can get a list of the custom properties of a stage from DSGetStageInfo() - for a parallel job, of course - and then use DSGetCustInfo() to get the value ...
karmadasai.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

DSGetStageInfo().
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 »

There is no equivalent for server jobs.

I don't believe DSGetStageInfo() can retrieve user-defined SQL.

You could, of course, retrieve the SQL from DS_JOBOBJECTS (a "hack") but I'd refrain from this approach because it ceases to work in version 8.0.

Probably easiest is to use DSGetLogSummary() function.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Re: DSGetCustInfo Usage

Post by DSguru2B »

karmadasai wrote:I would like to keep information about a ORAOCI Stage , I need the SQL string defined by the user.

I missed out on that part. :oops:
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply