datastage jobs

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

guna
Participant
Posts: 3
Joined: Mon Jan 31, 2005 11:33 pm
Location: hyderabad

datastage jobs

Post by guna »

1)can we create readly only routine in datastage?
2)what is staging area in datasatge etl architecture?
3)what is syn-sort in datastage ?
4)what is the use of job parameteres how can u use them?
5)what are staging ,environmental,system variables?
6)how can u use datastage routines?
7) what is trim b and trim f functions in datastage?
8)what are the general problems u face when run a job?
9)how can you run datastage job in back_ground i their any command?
10) how can connect oracle to teradata?
11) how can use macro variables with examples?
12) why we look-up as hashed file why not odbc or flat file?
13)
guna
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I hope these are not questions in a job interview.

1) I would use Version Control.
2) DataStage itself is a staging area including hash files and sequential files.
3) Syncsort is a third party tool that sorts flat files very fast. Cosort is a similar product. All of this use plugins.
4) Job parameters are generally used to stored concepts that may change between dev, test and production DataStage servers like DSNs, user, passwords and temporary file paths. Normally you need to use #JobParam# to retrieve the value of the parameter.
5) Stage variables are only valid in one stage. They are used to store long complex repeatable derivations. They are also used to store values from a previous record. They can be used to accumulate values or aggregate values.
Environment variables are another way to setup parameters. Some say they are easier to port to from dev, test and production. Not sure if I agree with that statement.
System variables are assigned by the DataStage engine like @DATE and @TIME. Only a few of these can be used or assigned by a user like @USER1.
6) Routines can be used to do complex derivations. There are also before and after routines which can be used to trigger events at the OS level like archive a file.
7) Trim has several variations to trim more than blanks. trimb is trim back. trimf is trim in front. This way you can trim leading blanks or trailing blanks or zeros or whatever.
8) Run out of disk space. Run too long.
9) All DataStage jobs run in the background.
10) Plugins or ODBC is the way to connect to any database. The OCI stages are the Oracle ones.
11) I have not used macros.
12) Hash files are very fast for lookups.
Mamu Kim
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

Sounds like a job interview to me. :roll:

Kim, You're hired! :lol: :lol:

Mike
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Mike

Thanks. I know we really do not want to help people get jobs when they do not know these answers.

Someone sent me a real nice email so I answered this.

How do macros work by the way? (12)

In my mind it is okay not to know it all. Only Ray knows it all at least when it concerns DataStage. Has Ray asked a question? I know Craig has. Not sure Ken has either. My brain is too old to hold all these answers. I am too old to care too. Now I am happy if I can remember where to look. First place to look is here. Thanks Ray, Craig and Ken. Just kidding around.
Mamu Kim
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

Kim,

I, for one (among hundreds/thousands of others I'm sure), appreciate your willingness to share your hard-earned knowledge and experience on this forum.

A good job interviewer will know the difference between someone who is just regurgitating an answer and someone who has actually internalized the concepts.

My understanding of the DS Macros is that they are just convenient short-hand so that you don't need to remember the API call syntax (e.g. DSJobStartDate).

Thanks,
Mike
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Those macros. Isn't there some kind of macro built around job templates?
Mamu Kim
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

Ah. I didn't think of that possible angle. I haven't played around with job templates.

Didn't Ascential make an attempt at some kind of "Intelligent Assistant" or "Wizard" for jump-starting a job design? I guess that must be what you were thinking of in terms of a "macro".

Mike
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Mike wrote:Didn't Ascential make an attempt at some kind of "Intelligent Assistant" or "Wizard" for jump-starting a job design
Yes, they did. However, I think there was an issue with the "Intelligent" part and some functionality that was documented was revoked or some such. Had an interesting conversation with someone over on ADN on that topic.

Oh, and thanks Kim for pointing out the fact that I still ask a question or two on occassion, while Ray and Ken have evolved beyond that need. :lol: [/kidding]
-craig

"You can never have too many knives" -- Logan Nine Fingers
dsrules
Premium Member
Premium Member
Posts: 76
Joined: Sun Nov 28, 2004 8:56 pm

Post by dsrules »

Kim, dont you think those questions were in bad taste?. I hate to see people utilizing this forum for "Interview" kind of questions rather than have a real time problem. We are lucky to have the best experts and guru's in this forum. Thanks for all the support. What does Ray, Ken, Chulett and other guru's have to say about this?
______________________________________
"Everytime I close the door on reality, it comes in through the windows." - Jennifer Yane
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

dsrules wrote:Kim, dont you think those questions were in bad taste?
...
What does Ray, Ken, Chulett and other guru's have to say about this?
I was letting my silence speak for itself, until you invoked my name. Yes these are interview questions. New user, first post, reads like a tech'ing cheat to me.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Okay, I was in a good mood. No more Mr. Nice Guy. From now on I will follow the unwritten rule. Sorry. :(
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Even I have not been able to figure out the answer to Q13. :lol:

Maybe there's a case for providing partial answers, and alerting interviewers (via a premium service?) of some standard questions that can be asked, the standard partial answer that is published here, and some follow-up question to test the depth of the candidate's real knowledge.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

On the topic of intelligent assitants, I've got one installed "New Data Migration Job", but I recall I once got a version 7.x installed which had intelligent assistants for slowly changing dimension jobs! I can't recall which client or machine I was on at the time time but I haven't been able to find it since. It created a sequence job an a bunch of server jobs for various types of SCD jobs.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Even I have not been able to figure out the answer to Q13.
Geez, Ray could not answer a question. I am :shock: .
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Can YOU answer the OP's question 13? :roll:

(Arguably Q13 is the stunned silence from the interviewer resulting from the candidate's answers to the previous 12.) :twisted:
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