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
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 |
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 |
Answer / sirisha
by using transformer stage also we can generate the column &
values also
| Is This Answer Correct ? | 2 Yes | 0 No |
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 |
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 |
Answer / thangavel282@gmail.com
hi ...
they are asking run time so please use rcp
| Is This Answer Correct ? | 0 Yes | 1 No |
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 |
What is the Environment Variable need to Set to TRIM in Project Level?(In transfermer, we TRIM function but I need to impliment this project level using Environment variable)
I have a few records just I want to store data in to targets cycling way how?
diff between changecapture & diffrence stage which situvation we can use the diffrence stage ?
What are datastage sequences?
how to closeing records after 10,000 records come?
can a fact table contains textual information
6 Answers HCL, HCL BSERV, IBM,
Differentiate between odbc and drs stage?
how to sort two columns in single job in datastage.
in source is like seq file in date column have dd-mm-yy dddd-mmmm-yyyy mm-dd-yy yy-dd-mm yy-mm-dd i want to display only yy-dd-mm date formats only in tgt?
What are the main differences you have observed between 7.x and 8.x version of datastage?
Define meta stage?
what r the sources u need to create the datastage?