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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to run a sequential file stage in parallel if the stage is used on the TARGET side

1129


Why we use surrogate key?

695


explain about citrix scheduling tool in datastage

1808


Notification Activity

893


options available in sequence job to run,validate?

825






Difference between server jobs & parallel jobs?

641


root tree will find which is server job and which is parallel job?

1443


EXPLAIN SCD

952


Have you have ever worked in unix environment and why it is useful in datastage?

641


Can you explain repository tables in datastage?

894


how to get sum of sal based on dept_no and then sum of all sal irrespective of dept_no in same sql. output:- 10, 200(sum of sal for dept_no 10), 5000(sum of all sal)

513


what is 'reconsideration error' and how can i respond to this error and how to debug this

2113


Can you define merge?

660


Define Routines and their types?

616


Distinguish between informatica & datastage. Which one would you choose and why?

576