In Sequential file, how can i split a column into two, and
that column contains string datatype.
For Example, i have column of string datatype as subedar
khaja. Now i want get output as separately with subedar in
one column and khaja in second column.
How?
Coula anybody, solve it?
Answers were Sorted based on User's Feedback
Answer / siva
SEQUENTIAL FILE.....>TRANSFORM.....>DATASET
IN TRANSFORM STAGE WE USE FIELD FUNCTION (OR)LEFT FUNCTION.
IN TRANSFORM >>>FUNCTIONS>>>STRINGS>>>FIELD(%string%,'%
delimter%',%occuarence%).
FIELD(subedar khaja.,' ',1)=column1.
FIELD(subedar khaja.,' ',2)=column2
| Is This Answer Correct ? | 18 Yes | 2 No |
That's is right siva. Here is another set of solution:
i/p is ColA which contains Vinod Upputuri.
in order to spit this column into two columns, I am going
to use Column Import stage.
SEQSTAGE>>>COLUMNIMPORT>>>TARGET.
In column import stage>>> we have to specify the import key
column, then specify the column to export: in this case
First_name,Last_Name etc.
Note: Specify the Delimeter as per the input format.
| Is This Answer Correct ? | 2 Yes | 0 No |
how to unlock a locked job in datastage 8.0
What is the method of removing duplicates, without the remove duplicate stage?
whats difference between ls -ltr and ls -lrt?
Lookup constraints
what is the use of skid in reporting?
explain about completely flow of sequencers technicaly,without using example??explain about lookup,nullhandling?
what is meta data? Explain? Where it is used?
In aggregator stage,to find the sum of the entire group of columns,it displays in binary format. How can i solve this problem.
What is the function in Transformer stage can act as Rank Function in oracle
what is the custome stage in datastage? how can we impliment that one? plz tell me
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?
Can anyone tell me a difficult situation who have handled while creating Datastage jobs?