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

Is it possible to implement parallelism in Mainframe Jobs ? If Yes how ? If no why ?

1787


What is aggtorec restructure operator?

731


What are the types of containers in datastage?

707


What are data elements?

664


What is the use of datastage director?

595






Explain the situation where you have applied SCD in your project?

1568


in oracle target stage when we use load option and when we use upsert option?

1759


what is stage is used for below Input columns: dept|mgr|employee|salary Output columns: mgr|count of employee per mgr|avg salary per dept note: each dept has one mgr and each mgr has many employees

668


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

657


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

631


Difference between server jobs & parallel jobs?

657


what should be ensure to run the sequence job so that if its get aborted in 10th job before 9job should get succeeded?

960


What is the difference between validated and compiled in the datastage?

707


What are the functionalities of link partitioner and link collector?

600


What is process model?

1558