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 hash file

2 Answers   CTS, IBM,


Have you used Unstructured data?

0 Answers   CTS,


1)How to Duplicate Records Delete in Sequential file?

4 Answers   IBM, TCS,


souce file having the columns like name company krish IBM pooja TCS nandini WIPRO krish IBM pooja TCS if first row will be repeat i want the result like this name company count krish IBM 1 pooja TCS 1 nandini WIPRO 1 krish IBM 2 pooja TCS 2

9 Answers  


You enter values in a schema file for RCP and you also entered values in sequential file? which one will it take?

1 Answers   TIAA CREF,






Why do we use exception activity in Datastage?

0 Answers  


if 3 table having different columes. like first table having 4 columns , second table having 3 columns and third table having 2 columns then how to capture the data by using funnel stage in parallel jobs...srinu.thadi

17 Answers   IBM, TCS,


how can u find out the datastage job is running on how many nodes

7 Answers   IBM,


what is normalization and denormalization

2 Answers   CTS,


If seg file having 10 records ex:eid 1 2 " " 10 if oracle database having 100 records ex:eid 1 2 " " 100 how to delete matched records permenently from oracle database using datastage ?

5 Answers   Infotech,


Hi guys, please design job for this, MY INPUT IS COMPANY,LOCATION IBM,CHENNAI IBM,HYDRABAD IBM,PUNE IBM,BANGLOORE TCS,CHENNAI TCS,MUMBAI TCS,BANGLOORE WIPRO,HYDRABAD WIPRO,CHENNAI HSBC,PUNE MY OUTPUT IS COMPANY,LOCATION,COUNT IBM,chennai,hydrabad,pune,banglore,4 TCS,chennai,mumbai,bangloore,3 WIPRO,hydrabad,chennai,2 HSBC,pune,1 Thanks

3 Answers   IBM,


What are routines in datastage? Enlist various types of routines.

0 Answers  


Categories