Craig must be on vacation.
What is athe ASCII value of the special characters you want to reject? Find that out and only write records that don't contain them. Write those that do to the reject link.
'?' just means the character is unprintable. You need to replace the '?' with the ASCII value (CHAR(x) for example where x is the ASCII number).
problem with special characters while reading from AS400
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 730
- Joined: Tue Nov 04, 2008 10:14 am
- Location: Bangalore
how to find the ascii code of a character in DS
Is There any cunction that returns the ascii code of a character in datastage.throbinson wrote:Craig must be on vacation.
What is athe ASCII value of the special characters you want to reject? Find that out and only write records that don't contain them. Write those that do to the reject link.
'?' just means the character is unprintable. You need to replace the '?' with the ASCII value (CHAR(x) for example where x is the ASCII number).
-
- Charter Member
- Posts: 299
- Joined: Wed Nov 13, 2002 5:38 pm
- Location: USA
DS Help would have answered your question faster;
Seq(character)
Seq(character)
Code: Select all
Converts an ASCII character to its numeric code value.
Syntax
Seq(character)
character is the ASCII character to be converted. If character is a null value, null is returned.
Remarks
The Seq function is the inverse of the Char function.
-
- Premium Member
- Posts: 730
- Joined: Tue Nov 04, 2008 10:14 am
- Location: Bangalore
many Thanks
throbinson wrote:DS Help would have answered your question faster;
Seq(character)
Code: Select all
Converts an ASCII character to its numeric code value. Syntax Seq(character) character is the ASCII character to be converted. If character is a null value, null is returned. Remarks The Seq function is the inverse of the Char function.