Regarding Universe Documentation

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
dstest
Participant
Posts: 66
Joined: Sun Aug 19, 2007 10:52 pm

Regarding Universe Documentation

Post by dstest »

Hi,

Can any one please tell me where can i found the documentaion for the following basic functions.

DSR.SUB.JOB.RESERVE
Call @SUBR(Key, Arg2)
Call DSD.Init(MyJobNo, Dummy2)
Key = DSR.SUB.JOB.COMPILE


Appreciate for your help
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Any routine with a DSD or DSR name is part of DataStage server engine. Source code is intellectual property of IBM (and heavily guarded) and there is no documentation in the public domain.

The Call @SUBR(args) form is documented in the DataStage BASIC manual. Search for "indirect call" in the section on the CALL statement.

"Key = DSR.SUB.JOB.COMPILE" is a simple assignment statement (that is, it is not a "basic function". The constant is declared in the header file for "helper subroutines", namely DSR_UVCONST.H in the DSINCLUDE directory.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Looks like KBA code.

To whit, a snippet from the Batch::UTILCompileJobs job:

Code: Select all

CompileJob:
      Key = DSR.SUB.JOB.RESERVE
      Arg2 = JobName
      Call @SUBR(Key, Arg2)
      Call DSD.Init(MyJobNo, Dummy2)
      If Key <> "" Then
         JobsNotCompiled<-1> = JobName:"   ":"Cannot attach to job"
         NumFailed += 1
      End Else
         Key = DSR.SUB.JOB.COMPILE
         Arg2 = JobName
         Call @SUBR(Key, Arg2)
         Call DSD.Init(MyJobNo, Dummy2)
         If Key <> "" Or Arg2<1> <> "" Then
            JobsNotCompiled<-1> = JobName:"   ":"Cannot compile job"
            NumFailed += 1
         End Else
I happily use it without necessarily understand what each line is doing. :wink:
Last edited by chulett on Thu Sep 11, 2008 9:50 pm, edited 1 time in total.
-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 »

You can "sort of" figure out what's going on by reading the comments in the header file, but you'll never be sure that you've got all the possibilities.
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