Setting column value as Parameter
Posted: Wed Mar 25, 2009 9:36 pm
I have a sequential file as source it has one field as "Table_Name".My requirement is to extract the table name values from the Table_Name field and create a target file with name as that of "Table_Name".
Note: The sequential file will contain only one record.
For e.g:-
Case1:-
Source:-
Table_Name Col1 Col2
Emp Tom 23
I have to create target file with "Emp" as it's name.
Similarly for Case2:-
Source:-
Table_Name Col1 Col2
dept Finance 30
I have to create target file with "dept" as it's name.
Do i need to set the column value as parameter.
In transformer i tried using DSSetParam command to set as parameter but it didn't work..
Please help me out...
Note: The sequential file will contain only one record.
For e.g:-
Case1:-
Source:-
Table_Name Col1 Col2
Emp Tom 23
I have to create target file with "Emp" as it's name.
Similarly for Case2:-
Source:-
Table_Name Col1 Col2
dept Finance 30
I have to create target file with "dept" as it's name.
Do i need to set the column value as parameter.
In transformer i tried using DSSetParam command to set as parameter but it didn't work..
Please help me out...