Hi frnds, my scenario is like i'm having a record
1234"1323£3434%343434^23232!1212$23232
in the above record all the special characters must be removed.how can we do it in datastage 8.0.1.can any one please ans this? thanx in advance

Answers were Sorted based on User's Feedback



Hi frnds, my scenario is like i'm having a record 1234"1323£3434%343434^23232!1212$..

Answer / rajendhar reddy kuthuru

we can use convert function to remove special characters or replace a string

convert('$%^@"!',"",string)-stage var1

it will replace all special characters with a single space

compactwhitespace(stagevar1)

Is This Answer Correct ?    15 Yes 0 No

Hi frnds, my scenario is like i'm having a record 1234"1323£3434%343434^23232!1212$..

Answer / srinivas

Please use below function.
convert('!@#$%^&*','',string)

No need of the give space in between codes

Only one step to solve this.

Is This Answer Correct ?    11 Yes 0 No

Post New Answer

More Data Stage Interview Questions

Explain how a source file is populated?

0 Answers  


In my project source data comes from MAINFRAME in files.so,This time data is coming as a binary file...I know for binary data we use Complex flat file stage..I have used it also..but on 'view data' data is not coming correctly..as it in MAINFRAME.give me some ideas..

2 Answers  


how can u connect the client system directly at any time?

1 Answers   IBM,


Which type of joins Merge stage can support?

7 Answers   IBM,


How do you remove duplicate values in datastage?

0 Answers  






How many number of reject links merge stage can have?

7 Answers   TCS,


how to implement scd2 in datastage 7.5 with lookup stage

0 Answers   TCS,


I want capture UnMatched records from Primary source and secondary source in JOIN stage?

3 Answers   TCS,


can we use sequential file as a lookup

7 Answers   Cognizant, Wipro,


convert yyyy mm dd to dd mm yyyy?

4 Answers  


What are the stages in datastage?

0 Answers  


Wat is pre-load in Hashed file

1 Answers   Patni,


Categories