need answer

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
rajima
Participant
Posts: 1
Joined: Wed Jun 08, 2005 4:53 am

need answer

Post by rajima »

hi,
pls send anwer for the follwing questions

1 .how to refresh the hased files?
2. which will execute first routine or transform?
3.what is the difference between routine and transform?

thanks and regards
raj
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Hello Rajima,

(1) .how to refresh the hased files?
Since your DataStage jobs read from and write to Hashed files you take care of refreshing their contents yourself. They are no different in that aspect than other database tables.

(2) which will execute first routine or transform?
Neither - you have to explicitly call both routines and transforms, so whichever one you call first will get executed first.

(3) .what is the difference between routine and transform?
Routines are declared as either Subroutines or Functions; they can contain large amounts of code and complex logic. Transforms are much simpler single-line constructs.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sigh. Another newbie post that smells like interview questions. :(

Arnd, I think you've got number two a little wrong. The question is perhaps poorly stated, I'm wondering if they specifically mean if both a routine and a transform have the same name - which one is executed 'first'? First is the wrong word to use.

And there's a little bit more to number three. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Craig - I see what you mean about question number two, I just looked at the question (along with the others) from another angle. At first I thought I would be tongue-in-cheek (hash files are, from time to time, refreshed by the blood of overworked consultants) but then decided a terse answer would suffice.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yah, I was considering answering the next batch of questions like this completely wrong, just to be a poopie head. If it was one of those Poopie Head Days, that is. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Don't forget Kim's word of the day "serks". As in "newbie question serks". :lol:
Last edited by ray.wurlod on Fri Jun 10, 2005 6:30 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Re: need answer

Post by ray.wurlod »

rajima wrote:hi,
pls send anwer for the follwing questions

1 .how to refresh the hased files?
2. which will execute first routine or transform?
3.what is the difference between routine and transform?

thanks and regards
raj

Can you be a little more specific with the questions? For example, in what context are you refreshing the hashed files? What is it that has made a refresh necessary? As others have noted, "first" is irrelevant: if you invoke a routine then a routine will execute; if you invoke a transform then a transform's definition expression will execute. It's not driven by a clock, it's driven by design.
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 »

Tell them Ray man.
Mamu Kim
Post Reply