i have a flat file and the file s are like below
****%%^^@@@G**@#A@#$N*&^E%^S@#h@@@##$$
IN THIS FORMATE
Means un limited special charecter between and sides of the
string data..output should be(GANESH)
HOW YOU HANDEL THIS TYPE OF RECORDS,,COZ U DON"T KNOW WHERE
AND WHAT ARE THE SPECIAL CHARACTERS IN BETWWEN THE NAME...

Answers were Sorted based on User's Feedback



i have a flat file and the file s are like below ****%%^^@@@G**@#A@#$N*&^E%^S@#h@@@##$$ IN THI..

Answer / meenakshivc

Hi,

use this function for above question,
replacestr(0,col,'$','!','@','#','%','^','&','*', NULL)
or
replacechr(0,col,'$!@#%^&*', NULL)

Is This Answer Correct ?    8 Yes 1 No

i have a flat file and the file s are like below ****%%^^@@@G**@#A@#$N*&^E%^S@#h@@@##$$ IN THI..

Answer / ratalarayudu

hi,

By using replacechr function we can remove unwanted characters .


Regards,
Rayudu.

Is This Answer Correct ?    7 Yes 1 No

i have a flat file and the file s are like below ****%%^^@@@G**@#A@#$N*&^E%^S@#h@@@##$$ IN THI..

Answer / rams

replacechr(0,reg_replace(input,'[^a-z A-Z]','/')'/',null)

Is This Answer Correct ?    3 Yes 0 No

i have a flat file and the file s are like below ****%%^^@@@G**@#A@#$N*&^E%^S@#h@@@##$$ IN THI..

Answer / manasa

please put down the replace command for the above question

Is This Answer Correct ?    0 Yes 0 No

i have a flat file and the file s are like below ****%%^^@@@G**@#A@#$N*&^E%^S@#h@@@##$$ IN THI..

Answer / hari

We can use reg_match function in informatica with required
regular expression to allow the charchters and number
format u need . In this way we can easily restrict any
special charchter.

Is This Answer Correct ?    0 Yes 0 No

i have a flat file and the file s are like below ****%%^^@@@G**@#A@#$N*&^E%^S@#h@@@##$$ IN THI..

Answer / anirban_ghosh

Since it's been said...we know nothing of the special characters present in between...therefore..the wise thing would be tp extract each character and compare it with the (int value) of the alphabets......if the (int) value of the extracted character is between....65-90 or 97-122......store it in a queue......at the end....flush out the queue....that's it!!!

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Informatica Interview Questions

Which transformation should u need while using the cobol sources as source defintions?

2 Answers  


What is mapplet and a reusable transformation?

2 Answers  


what is tha tracesing level? and difference betweentrace in normal and verbose and nonverbose?

2 Answers  


What is a look up function? What is default transformation for the look up function?

2 Answers   ASM, TCS,


suppose if we have dublicate records in a table temp n now i want to pass unique values to t1 n dublicat values to t2 in single mapping?how

4 Answers   CTS,






There are 3 groups in router transformation in which there are no conditions mentioned, so what happens if I connect these groups to the 3 targets? How many records gets into each target.(suppose if we are getting 10 records from the source)

4 Answers  


How to prepared lld.can any one tell me detailed explanetion.

0 Answers   Bank Of America,


CAN WE IMPLEMENT SCD TYPE 1 AND SCD TYPE 2 IN SAME MAPPING? IF SO HOW?

6 Answers  


how we can add header and footer to flat files?

2 Answers   Tech Mahindra, Zensar,


How to implement security measures using repository manager?

0 Answers  


How do you handle decimal places while importing a flatfile into informatica?

1 Answers  


How to go to the older version for a mapping?

0 Answers  


Categories