Hi am sundar, i have datas like
00023-1010
00086-1010
00184F2-1010
.
.
.
.
SCH-AS-1010
200-0196-039
.
.
.
Now i want the result "SCH-AS" in onee column and "1010" in
another column.. Can any one tell the answer...

Answers were Sorted based on User's Feedback



Hi am sundar, i have datas like 00023-1010 00086-1010 00184F2-1010 . . . . SCH-AS-1010 200-..

Answer / swamy

Use field function in transformer stage. This function
performs based on delimeter... so, you can use that field
function. like field(delimeter, occurance) - field means
(input column) delimeter ("-") occurance(2) ...

Is This Answer Correct ?    10 Yes 0 No

Hi am sundar, i have datas like 00023-1010 00086-1010 00184F2-1010 . . . . SCH-AS-1010 200-..

Answer / madan

use substr in transformer and divide it in to 2 fields as
required

Is This Answer Correct ?    1 Yes 0 No

Hi am sundar, i have datas like 00023-1010 00086-1010 00184F2-1010 . . . . SCH-AS-1010 200-..

Answer / ashutosh g

use Row splitter as tranform stage and specified the column
name.

Is This Answer Correct ?    0 Yes 0 No

Hi am sundar, i have datas like 00023-1010 00086-1010 00184F2-1010 . . . . SCH-AS-1010 200-..

Answer / balu

We are using LEFT and RIGHT TRIM function in transform stage.

Is This Answer Correct ?    0 Yes 0 No

Hi am sundar, i have datas like 00023-1010 00086-1010 00184F2-1010 . . . . SCH-AS-1010 200-..

Answer / palgun

Simple.....use da delimiter as --

SCH-AS--1010

Does dat solve ur prob??

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Data Stage Interview Questions

Enlist various types of routines in datastage.

0 Answers  


Terminate Activity

0 Answers   CTS,


i have 3 diffrent tables. 1) US rate data 2)CANADA rate data and 3)MEXICO rate data. All 3 tables have 6 collumns each. 4 collumns are commun to all tables and 2 are diffrent. Now at target i want single table say Country rate which will have (4+2+2+2+1 flag) 11 collumns. I will add a flag collumn which will indicate country and will put nullable collumns which are not common to other. How i can implement this in datastage?

1 Answers   ABC,


Explain datastage architecture?

0 Answers  


Explain connectivity between datastage with datasources?

0 Answers  






What is size of a transaction and an array means in a datastage?

0 Answers  


1)Source file contains one record, I want 100 records in target file.

3 Answers  


Source flat file contains src --- 1 2 ' ' ' 18 we had 3 targets T1 T2 T3 -- -- -- 1 4 7 2 5 8 3 6 9 10 13 16 11 14 17 12 15 18 How can i get? **Using only datastage, but not unix or any other. I am expecting the answer soon.. Thanks in advance.

7 Answers  


how many dimentions and fact tables used in your project and what are names of it?

3 Answers   Tech Mahindra,


How can u write exception handling in seq file????

2 Answers   IBM,


sed,awk,head

0 Answers   CTS,


What is a merge in datastage?

0 Answers  


Categories