How to eliminate special characters that appear in extracted data files
Dear all,
I need your help please,
I have data files that are extracted via programs from a database db1. Those datafiles appear to have special character in the last record, so the last record in the datafile is entered in the database db2 via sql loader import and it appears in the table as a special character like a square.
What could I do in the control file to skip the last record in the datafile that contains this special character?
regards
is it last row in the file or last field in each row (record)?
*1. if last field in each row* then it looks like you are running import on unix box and it's dos file. Unix file have end-of-line LF, dos have CRLF
a. in sql loader add the records terminator to INFILE clause http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/ldr_concepts.htm#sthref718 it's been I while since I used SQL Loader, I believe it would look like this
INFILE '/myfile.csv' "str '\r\n'"
b. in external table (this is not your case and you can ignore this comment) you can use RECORDS DELIMITED BY clause like this RECORDS DELIMITED BY '\r\n'
*2. if it is very last row* in the file, then you can use WHEN clause to filter that row
a. SQLLDR http://www.orafaq.com/wiki/SQL*Loader_FAQ#Can_one_selectively_load_only_the_records_that_one_needs.3F
b. external table uses LOAD WHEN clause http://jiri.wordpress.com/2009/03/09/oracle-external-tables-by-examples-%E2%80%A6-part-2-reading-file-with-header-and-footer/
Similar Messages
-
How to eliminate Eudora msg that appears in Mac Mail?
We use MacMail but my wife has a folder of old Eudora mail on the HD. I selected Offline and it's no longer used for sending or receiving. Yet when we try to send someone a URL from a web site using the "Mail Link to This Page" in Safari we always get a small screen saying: "Export from Macintosh HD ...(long list)...Eudora Settings? Choose OK to export from this settings file or check "Different" to choose a different one."
I have no idea what different one would be chosen - couldn't find a Mail settings folder. How to get rid of this?In Mail > Preferences > General, what is the default email reader? If it's not Mail, change it to Mail and try again.
-
How open old Appleworks documents that appear as UNIX executable files?
A few of my old Appleworks or Clarisworks files won't open with Appleworks 6, but show up as a "UNIX executable file." I have tried adding the ".cwk" extension, repairing permissions using Disk Utility, and using Finder>File>Get info>Open to choose Apleworks 6 (it already was selected) as recommended by Peggy. With ".cwk" extension, I then get "that file appears to be damaged and cannot be opened."
Any other suggestions?Hi Cloyd G,
welcome to Apple Discussions and the AppleWorks forum.
The 'UNIX executable file' classification error appears to arise mostly from the lack of a suffix (.cwk) on the original file. If adding the .cwk suffix does not make the file readable by AppleWorks, and gives a 'file appears to be damaged' message, then it's likely that the file has indeed been damaged.
If it's a word processor file, you could try opening it in a Text editor (such as Text Edit, supplied with OS X, or Text Wrangler, available free from Bare Bones Software). You'll get a large amount of junk (file meta data and formatting codes, etc.) with the text of your document somewhere in the middle. If you know a single word that is in (or is likely to be in) the document, a search using command-F should take you directly there. Copy the text and paste it into a new AW document.
For spreadsheet files, you can try dragging the file and dropping it onto a new, empty spreadsheet document. The same technique may also work for database files. I've never tried or seen recommended the same texchnique for Draw or Paint files, but attemptng it should do no harm.
Best of luck with this.
Regards,
Barry -
How to write special characters in PDF using iText
How to write special characters encoded with UTF-8 in PDF using iText.
Regards,
Pandharinath.I don't know what your problem is but that's almost certainly the wrong question to ask about it. Java (including iText) uses only Unicode characters. (You may consider some of them to be "special" if you like but Unicode doesn't.) And when it does that, they aren't encoded in UTF-8 or any other encoding.
So can you describe your problem? That question doesn't make sense. -
How to display special characters in Script...
hi all,
Can any one tell me how to display special characters in script...
how to write in text element
thanks in advance,
prashantHi Prashant ,
What special characters would you like to include .
There are a set of characters / icons /symbols that can be included in Script , for that open a window in edit mode and in the menu there will be an option called Insert , here you can find a lot of characters/symbols that can be included .
Regards,
Arun -
How to Eliminate Special Character in SQL LOADER Script
How to eliminate special character from SQL LOADER script file which suppose not to insert in TABLE
example.CSV lile like this
<ABC/ , 7747>
<DEF/ , 7763>
<NEW/ , 7779>
<OLD/, 7795>
I have to remove < > and / character at the time of loading into table. How It could be done. It is not possible to remove < , > , / character manually from CSV fileOn Unix/Linux that's very easy, on Windows... I don't know...
$ cat myfile.csv
<ABC/ , 7747>
<DEF/ , 7763>
<NEW/ , 7779>
<OLD/, 7795>
$ tr -d "\057\074\076" <myfile.csv >outfile.csv
$ cat outfile.csv
ABC , 7747
DEF , 7763
NEW , 7779
OLD, 7795
$ -
How to remove special characters while typing data in edit cell in datagrid in flex4
Hi Friends,
I am facing this problem "how to remove special characters while typing data in edit cell in datagrid in flex4".If know anyone please help in this
Thanks,
Anderson.Removes any characters from
@myString that do not meet the
provided criteria.
CREATE FUNCTION dbo.GetCharacters(@myString varchar(500), @validChars varchar(100))
RETURNS varchar(500) AS
BEGIN
While @myString like '%[^' + @validChars + ']%'
Select @myString = replace(@myString,substring(@myString,patindex('%[^' + @validChars + ']%',@myString),1),'')
Return @myString
END
Go
Declare @testStr varchar(1000),
@i int
Set @i = 1
while @i < 255
Select
@TestStr = isnull(@TestStr,'') + isnull(char(@i),''),
@i = @i + 1
Select @TestStr
Select dbo.GetCharacters(@TestStr,'a-z')
Select dbo.GetCharacters(@TestStr,'0-9')
Select dbo.GetCharacters(@TestStr,'0-9a-z')
Select dbo.GetCharacters(@TestStr,'02468bferlki')
perfect soluction -
How to print Special Characters in Sap-Scripts
How to print Special Characters in Sap-Scripts
Thanks,
RaviHi
if u want print special characters we can use hot codes i.e ' ' (single inverted commas). in between these hot codes insert u r special characters.
write ' !@#$%^&*( ) '.
for the above write statement output is
output is !@#$%^&*( ) -
Special characters being read from the unicode file for greek language
Hi All,
I have a report which would upload a unicode file and then update the vendor master data accordingly.
The file contains greek characters too.
when the file is being read in the code, some special characters are being added up to the vendor number which is the first entry. The special characters are not included in the file , but are added up only to the first vendor number and not any other vendor numbers.
The logic that is being used is as follows :
TRY.
IF unicode IS INITIAL.
IF codepage IS INITIAL.
*--> For backward compatibility where this FM might be called from
* other dependent objects (FMs/dynamic subroutines)
* which donot have access to user's input w.r.t Unicode parameters
OPEN DATASET filename FOR INPUT
IN LEGACY TEXT MODE
MESSAGE msg
REPLACEMENT CHARACTER repl_char
IGNORING CONVERSION ERRORS
FILTER filter.
ELSE.
*--> System in non-unicode and Unicode Environment (Phases I and II)
OPEN DATASET filename FOR INPUT
IN LEGACY TEXT MODE CODE PAGE codepage MESSAGE msg
REPLACEMENT CHARACTER repl_char
IGNORING CONVERSION ERRORS
FILTER filter.
ENDIF.
ELSE.
*--> Extract File in Unicode format - Phase III
OPEN DATASET filename FOR INPUT IN TEXT MODE ENCODING UTF-8
MESSAGE msg
FILTER filter.
ENDIF.
IF sy-subrc NE 0.
MESSAGE e001(zuni) WITH filename sy-subrc
RAISING file_open_error.
ENDIF.
the unicode parameters used are : codepage = 8000.
An early reply is most appreciated.
Regards,
Manu.Please check SAP notes for Eastern European Characters in Unicode system. and may be below code helps you
DATA:
ltp_bom TYPE sychar01,
ltp_encoding TYPE sychar01,
ltp_codepage TYPE cpcodepage.
Processing --------------------------------------------------------- *
TRY.
CALL METHOD cl_abap_file_utilities=>check_utf8
EXPORTING
file_name = itp_filename
max_kb = -1
all_if_7bit_ascii = abap_true
IMPORTING
bom = ltp_bom
encoding = ltp_encoding.
CATCH cx_sy_file_open .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING file_open_error.
CATCH cx_sy_file_authority .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING file_authority_error.
CATCH cx_sy_file_io .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING file_io_error.
ENDTRY.
CASE ltp_encoding.
WHEN cl_abap_file_utilities=>encoding_utf8
OR cl_abap_file_utilities=>encoding_7bit_ascii.
CASE ltp_bom.
WHEN cl_abap_file_utilities=>no_bom.
OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
ENCODING UTF-8.
WHEN cl_abap_file_utilities=>bom_utf8.
OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
ENCODING UTF-8
SKIPPING BYTE-ORDER MARK.
WHEN cl_abap_file_utilities=>bom_utf16_be.
ltp_codepage = '4102'.
OPEN DATASET itp_filename FOR INPUT IN LEGACY BINARY MODE
BIG ENDIAN CODE PAGE ltp_codepage.
WHEN cl_abap_file_utilities=>bom_utf16_le.
ltp_codepage = '4103'.
OPEN DATASET itp_filename FOR INPUT IN LEGACY BINARY MODE
LITTLE ENDIAN CODE PAGE ltp_codepage.
WHEN OTHERS.
OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
ENCODING UTF-8.
ENDCASE.
WHEN OTHERS.
OPEN DATASET itp_filename FOR INPUT IN LEGACY TEXT MODE.
ENDCASE.
Edited by: Nilesh Shete on May 7, 2010 5:29 PM -
How to put special characters on letters : Torch
Normally on a PC you use the alt button and the numeric keys to put a certain mark on a letter I.e an accent sign on an e. How do I do that on my BB torch
Solved!
Go to Solution.On your Torch, using hard slip out keyboard, press and HOLD the letter you want accented or a special character, and scroll the trackpad horizontally (sideways) and you will see the special characters.
On the touch keyboard, just touch and hold the touch a couple seconds and the alternative characters will appear, to choose from.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
How to show Special Characters like (∠) in an Embedded text field
I want to show some special characters like (∠). It is working fine if we don't embed the text field. But I want to use superscript and subscript font, so I have to embed that dynamic text field. When I embedd the texfield it does not show me the (∠) symbol. Instead it shows me a square symbol. Please let me know how can I solve this problem. My project is nearly finish except for this part.
Thanks in advance
SalimYes, I know we need to include the symbols. But I am unable to include it. Whenever I click on embed option and paste the symbol (∠) in the include these characters box, it appears as a square symbol. This is driving me nuts.
I even tried to embed All (54665 glyphs). But this is not working either.
Has anyone faced this problem before? -
How to add special characters in Flash CS3
Hi, i need the help of some flash guru… these last weeks we were working with cloversites.com to build a community website… the interface is awesome etc etc however we in Malta have eight special characters (GCZ with a dot on top of them and an H with a second strikethrough). Those at cloversites wrestled with the problem, they could see the characters on their computers but when they entered the text in the site, flash couldn't render the special characters. Here is their message:
I am extremely sorry about this, but we were unable to add in your characters. We attempted to add them into our software but they did not work. We worked on it all morning and realized that we need an extra add-on for our keyboards. Adding special characters is nothing new to us and have answered this request for many of our international users. For some reason, the Maltese characters did not work in our sites. For example, our "option-G" is the copyright symbol so it will need to be transferred over to international characters.
Unfortunately, we thing that this has to do with Adobe Flash CS3. The software allowed me to embed the characters, but we were unable to render them on the web. Which led us to think it had to do with the version Adobe is running and its inability to render the text through its software on the web. None of the characters worked on the web, and it looks like its just an Adobe bug. So we are able to type and use the Maltese characters, but Adobe Flash is having trouble with them.
Does anybody know of any possible solution?see if codepoints-to-string() is suitable for you ..
Re: how to concatenate hexadecimal value to string in XQuery in PS Message Flow -
How to remove special characters in xml
Dear friends,
How to remove the special character from the xml. I am placing the xml file and fetching through file adapter.
The problem is when there is any special character in xml. i am not able to pass to target system smoothly.
Customer asking schedule the file adapter in order to do that the source xml should not have any special charatcters
How to acheive this friends,
Thanx in advance.
Take careHi Karthik,
Go throgh the following links how to handle special character
https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
Restricting special characters in XML within XI..
Regards
Goli Sridhar -
How to handle special characters in Apex
Hi ,
In my application I have two regions - one is Report Region (Interactive Report) and other one is HTML region with two text items - Empno and name
My Report has two columns Empno(varchar2) and Ename(varchar2).
When I click the edit link in the report column, the empno should have a read only EMPNO value and ename is a text field with ENAME value.
When I run my application I have encountered the following problems :
1. if my empno has special characters like ' # ', the characters after that is not getting displayed
2. if my empno has special characters like ',' - the characters after comma is treated as a next texitem value
Here is my credential ,
Workspace CTSAN_ORACLE_DB
Username [email protected]
Password lakshmi321
URL : http://apex.oracle.com/pls/apex/f?p=9444:19:4292839314890159:::::
Plz. suggest me how to rectify the above problems.
Thanks,
Anoo..
Edited by: Anoo on Aug 13, 2010 3:05 AMDon't pass data values in URLs. Whilst it is possible to escape values to make them URL- and APEX parameter-safe, it is much better practice to avoid the problem altogether.
Create a surrogate primary key on the table that is an immutable discrete numeric identifier and only use this as a URL parameter. In target pages/regions, use this PK value to retrieve the required data from the table. -
How to preserve special characters in dynamic textfield for text comparison?
The problem is as follows:
Since I mostly develop for multiple languages I am forced to have dynamic textfields in my buttons which contain three lines (to account for the differnt text.lengths in different languages).
I then populate the textfields with strings out of an array or xml and use the textfields contents later in my button class to execute different code depending on the textfields content.
This works fine as long as I don`t use any special characters, like for example "\n".
var labels:Array = ["\nLABEL1","LABEL\n\n2"];
switch (e.currentTarget.txt.text)
case labels[0]:
doSomething();
break;
case labels[1]:
doSomethingElse();
break;
shows the right thing in the button label (breaks the text were I want it)
but stops to work
(with htmlText & <br> its the same)
my workaround for the moment is to use filler spaces,
var labels:Array = [" LABEL1","LABEL 2"];
but that`s obviously ugly to setUp and requires a lot of trial/error to get it right for all languages.
Any ideas how to bypass that?Bad habits die hard ;-)
Weird enough spelling the problem out and getting this response from you cleared my head and I finally got an easy solution.
I simply attach a dynamic property to the movieclip, copy the array contents into them and instead of using the text-property for comparison I compare the MovieClips fresh created spectext property.
Voila: Now I can be lazy without too much of a bad conscience.
Maybe you are looking for
-
so my computer crashed lost everything cant find my back up disc so i am stuck with my iphone which still has everything on it. i know how to transfer my purchased music but i had 2000 songs from cds i own on my iphone as well. How in the world do i
-
QuickTime X - Screen recording - can't import into FCP 7.0
Well, the title pretty much says it all. I upgraded to Snow Leopard on my MacBookPro 2.4GHzCore2Duo4GB RAM. No problems. I ran the new QuickTime X and made a short screen recording. Saved to desktop; I get a .mov file. Ran Final Cut Pro 7.0 after rec
-
High Spec New iMacs *ARE* More Expensive!
Ok, so I finally took the decision in mid-February that I couldn't wait another minute for the new iMac range to come out. I forked out for a top-spec iMac of the (now) previous generation. Imagine my dismay when just 20 days later, the new range was
-
Best modem to use with Macbook pro
I have a new Macbook Pro which won't stay connected to the internet. Apple don' t have the answer. I have noticed it is stable in other locations so I suspect it is not compatible issue with my wireless modem. Can anyone suggest a modem which is stab
-
Running the 6.1 Runtime Engine with 2009 Installed
I have 2009 Developer's Suite LabVIEW installed and am using it regularly. I recently obtained some executables which only run under the 6.1 Runtime Engine. I have downloaded the 6.1 RTE, but have not installed it. Do you think that installation o