Search and Replace
Search and Replace
 --> A
Ä --> A
À --> A
Á --> A
à --> A
Å --> A
â --> a
ä --> a
à --> a
á --> a
ã --> a
å --> a
Is there a way to do this in 1 task, or does each character have to be specified on it's own Search and Replace task?
Thanks in advance,
John
- Clarky
- Verified User
- Posts: 2
- Joined: Mon Aug 10, 2009 9:39 am
Re: Search and Replace
All data translation tasks, such as CSV, XML, Fixed-Width, etc... support an encoding option that allows you to specify the character set of the file you are working with. This allows GoAnywhere to work with these special characters, which, in many cases, eliminates the need to remove such characters from the data.
Would you provide more information as to why you need to change the character set? And what outcome are you trying to achieve? There may be an alternative approach depending on what you need.
- Support_Erick
- Support Specialist
- Posts: 8
- Joined: Thu Mar 05, 2009 9:20 am
Re: Search and Replace
For example, the following data may be in the file:
CAÑON CITY
After copying this info up to the AS400, it may convert it to the following:
CAÃ ON CITY
Not only did it convert the character, but it also added a space.
So, anyway, I am looking for a solution to either convert these characters before the CPYFRMSTMF is performed, or to find a solution to the CPYFRMSTMF bad conversion.
Thanks,
John
- Clarky
- Verified User
- Posts: 2
- Joined: Mon Aug 10, 2009 9:39 am
Re: Search and Replace
1) If you wish to use the CPYFRMSTMF command to upload the file, try setting the Stream File CCSID (STMFCCSID) option to *PCASCII. This CCSID preserves those characters.
2) If the file is one of the GoAnywhere supported file types (Fixed width or CSV), you could create a Read CSV or Read Fixed Width task within your project to read the data out of the file, then use an SQL task to insert the data into the physical file. This also preserves the characters.
- Support_Erick
- Support Specialist
- Posts: 8
- Joined: Thu Mar 05, 2009 9:20 am
Who is online
Users browsing this forum: No registered users and 0 guests