Urgent *In Sequential file ^@ junk characters are coming**
Moderators: chulett, rschirm, roy
Urgent *In Sequential file ^@ junk characters are coming**
Hi All,
In My source sequentail file i am getting ^@ characters afters column value and also in between.so i have tried through convert function convert(convert(lnk_non_cardinal_invoice_line.DEPT_NUM,CHAR(10),' '),CHAR(13),' ') but again lookup failed and reject file contains the same characters also it is a single character in unix so mgt be the ascii value is wrong also i have tried through somore ascii values alos like chr(64),chr(94)... but again not worked can anyone plz help me out to resolve thiss issue.
In My source sequentail file i am getting ^@ characters afters column value and also in between.so i have tried through convert function convert(convert(lnk_non_cardinal_invoice_line.DEPT_NUM,CHAR(10),' '),CHAR(13),' ') but again lookup failed and reject file contains the same characters also it is a single character in unix so mgt be the ascii value is wrong also i have tried through somore ascii values alos like chr(64),chr(94)... but again not worked can anyone plz help me out to resolve thiss issue.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
1. It's not urgent for us.
2. Please explain why this question falls under the heading "data quality best practices" or post it in the correct forum.
3. ^@ (or Ctrl-@) characters are not junk. These are ASCII NUL characters, presumably padding Char fields based on the string pad character environment variable.
Search DSXchange for more information.
2. Please explain why this question falls under the heading "data quality best practices" or post it in the correct forum.
3. ^@ (or Ctrl-@) characters are not junk. These are ASCII NUL characters, presumably padding Char fields based on the string pad character environment variable.
Search DSXchange for more information.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 47
- Joined: Tue Feb 23, 2010 12:16 am
- Location: CHENNAI
This is the one liner you require in Filter option in sequential file stage:
Code: Select all
echo hi^@ghgh@^|sed -e 's/\^//g' -e 's/\@//g'
highgh
pandeeswaran
How you are doing in Convert()?
works good for me,
Code: Select all
Convert('^@','',inputcolumn)
Last edited by pandeesh on Tue Jan 03, 2012 8:00 am, edited 1 time in total.
pandeeswaran
-
- Premium Member
- Posts: 730
- Joined: Tue Nov 04, 2008 10:14 am
- Location: Bangalore
The ^@ character what the user dsscholar speaks about is not a combination of '^' followed by '@' characters. Its actually a single nonprintable character which appears to be '^@' so the sed code wouldn't workpandeesh wrote:Code: Select all
echo hi^@ghgh@^|sed -e 's/\^//g' -e 's/\@//g' highgh
- Zulfi
-
- Premium Member
- Posts: 730
- Joined: Tue Nov 04, 2008 10:14 am
- Location: Bangalore