I have file with empid,empname and I want to load these two
fields along with sal in my target
1)salary must be same for all the records
2)I want pass the salary at run time

Answers were Sorted based on User's Feedback



I have file with empid,empname and I want to load these two fields along with sal in my target 1..

Answer / shilpasagar

Declare one job parameter SAL_PARAM

Within the job seq -> Transformer -> Target

In Transformer, declare one new column by the name SALARY
and give its value as job parameter (select SAL_PARAM from
the list)

Compile the job and run it. While running it will prompt
you to pass value for SAL_PARAM.

If you pass SAL_PARAM as 45000, then all the emp data will
be populated with emp_id,empname,empsal (45000)

Note: Enable RCP too

Is This Answer Correct ?    12 Yes 0 No

I have file with empid,empname and I want to load these two fields along with sal in my target 1..

Answer / bharath

Hi, thangavel
if we want this at runtime why can't u
pass parameters...?
I think,
By RCP we can generate only column names but not column data..

Is This Answer Correct ?    2 Yes 0 No

I have file with empid,empname and I want to load these two fields along with sal in my target 1..

Answer / sirisha

by using transformer stage also we can generate the column &
values also

Is This Answer Correct ?    2 Yes 0 No

I have file with empid,empname and I want to load these two fields along with sal in my target 1..

Answer / madhu

This can achieve using xmf stage, in create one extra column
as sal and data pass through parameter


Seq----> xmf---> dataset

Is This Answer Correct ?    1 Yes 0 No

I have file with empid,empname and I want to load these two fields along with sal in my target 1..

Answer / saran

ihn the job
seq--->tfm----target
in tfm stage take extra col as salary and create parameter for that salary
and take one stg variable in this call the parameter and map to o/p link salary column

Is This Answer Correct ?    0 Yes 0 No

I have file with empid,empname and I want to load these two fields along with sal in my target 1..

Answer / thangavel282@gmail.com

hi ...


they are asking run time so please use rcp

Is This Answer Correct ?    0 Yes 1 No

I have file with empid,empname and I want to load these two fields along with sal in my target 1..

Answer / bharath

hi,
use
row generater------------>peek

in designer and load emp table metadata at row gen
and give cycle as the type value=10000 which is
same for all records as u said..
thank u..
please correct if i am wrong...

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More Data Stage Interview Questions

what is the unix script to run the job? Please mention commands which we use often?

3 Answers   TCS,


What is a range lookup?

2 Answers   IBM,


What all are the different way to run a job?

0 Answers  


What are the functionalities of link partitioner and link collector?

0 Answers  


What is audit table?

1 Answers  






describe the Steps to confiure a Qlogic switch

0 Answers   IBM,


what is difference between migration project and integration project? can anyone explain with the example Thanks in advance

2 Answers   Satyam,


how can u connect the client system directly at any time?

1 Answers   IBM,


how to write server Routine coding?

0 Answers   Eric,


Drop duplicate records ... SOURCE LIKE .......... ID flag1 flag2 100 N Y 100 N N 100 Y N 101 Y Y 101 N Y 102 Y N 103 N N 104 Y Y 105 N N 106 N Y 102 N Y 105 Y Y in above file if any id having both the flags as "N" then that corresponding id records should be dropped, in above case o/p should be as ID flag1 flag2 101 Y Y 101 N Y 102 Y N 102 N Y 104 Y Y 106 N Y Steps to do : 1) Identified the id’s that got duplicated (both the flag values having vales “N”) 2) Look up with these id’s to existing id’s to drop .

2 Answers  


Give example for FACTLESS FACT TABLE in real-time scenario.

4 Answers   TCS,


What is the default padding character?

3 Answers   IBM,


Categories