Tell me Wt main advantage of Stage varibles?
Project level hints?

Answers were Sorted based on User's Feedback



Tell me Wt main advantage of Stage varibles? Project level hints?..

Answer / ramjanaki

The main advantage of Stage Variables is to reduce the
repetition of the code for all the required columns in the
Transformer.
Say for Example, if you are having 10 lines of code to
be used for all the derivations of columns in the
transformer, we declare a Stage variable once and we assign
these 10 lines of code to that variable and can place this
Stage variable where ever needed in the derivation of the
columns in the Transformer Stage. Th scope of these
variables is limited with in the stage it is created.

Is This Answer Correct ?    11 Yes 0 No

Tell me Wt main advantage of Stage varibles? Project level hints?..

Answer / pavan

The simple meaning of a stage variable is just like a
global variable.During processing the execution starts with
stage variables then contraints and then to individual
columns.If ever there is a prerequsite formulae which can
be used by both contraints and also individual columns then
we can define it in stage varaibles so that it can be
processed once and can be used by multiple records.If ever
we require the formulae to be modified for each and every
row then it is advisable to place in code in record level
than stage variable level

Is This Answer Correct ?    5 Yes 2 No

Tell me Wt main advantage of Stage varibles? Project level hints?..

Answer / brajesh

1. it can be used as global variable
2. It can be used for some preproceesiing operation
required for some constarint or records(columns).
3.It can be used to store the previous rows processed data
which can be used by next coming row.( its one of the
programming tactic )
Also the order of stage variable matters , it will execute
in the order they apeared on its palate.

Is This Answer Correct ?    2 Yes 1 No

Tell me Wt main advantage of Stage varibles? Project level hints?..

Answer / giri

The advantage of stage variables mainly used for
manipulation purpose.

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Data Stage Interview Questions

What are the areas of application?

0 Answers  


Hi guys, In sequencer job, we have 3 sources, in that 1st source have some records, Here requirement is 1st source records are 100 then only run the job otherwise total job will abort... How to calculate this. please design the job. Thanks.

1 Answers   IBM,


How can we read latest records in a text file named file1.txt using seq file stage only? file1 having 100 records in that 5 record sare latest records.How can we read that latest records?

3 Answers   Caterpillar,


can we see the data in fixed width file? how can u change the datatype of fixed width files?

1 Answers   Infosys,


what is mapping lookup

1 Answers  






what is the difference between datasatge and datastage TX?

6 Answers  


Differentiate between data file and descriptor file?

0 Answers  


I have a scenario like Deptno=10---->First record and last record Deptno=20---->First record and last record Deptno=30---->First record and last record I want those first and last records from each department in a single target. How to do this in DataStage, any one can assist me. Thanks in advance.

8 Answers  


What are the steps required to kill the job in Datastage?

0 Answers  


How to convert table data into xml file using xml output stage? please explain step by step;

2 Answers   IBM,


What is the flow of loading data into fact & dimensional tables?

0 Answers  


how can you generate sequence number using only the sequential file stage?

3 Answers   TIAA CREF,


Categories