Store Arabic character in Netezza N3001 - character-encoding

I have Arabic data in my source DB2 database. I am using DataStage as ETL tool and my target is Netezza. On loading the data I am seeing '???' in Datastage and in Netezza as well.
Please guide me on how to read the data in Netezza and in Datastage and what all encoding to use .
Thanks in advance.
Regards,
Gnanesh

Looks like you're just using varchar columns instead of nvarchar columns. After putting some Arabic characters in a file,
create table so as select * from external '/home/nz/test.dat' (arabic nvarchar(100));
Selecting from this new table returns the characters.

Related

Hyperion interactive reporting and JDEdwards

I am new using it, and have a question.
I need to join two files using a field that has different length.
In the file01. the field is text (3 characters) in the file02 the field is text (8 characters), both fieold has the data to the rigth side ( with spaces before)
So i need make some someting like that: trim(file01.field)=trim(file02.field).
Can you help me?. I don't know how to make advanced joins in Oracle Hyperion Interactive..
I really appreciate your help
you are working with local results and you have less options.
Try:
- import file01, after importing add a new computed item to join with Rtrim function;
- do the same to the file02
- insert a new query, go to local results and add the files (tables) to console and join this two tables by the new key.
Hugo

Is it possible to add BLOB Wide Memo field to a nexusdb table using a query?

I am developing a database comparing tool using delphi and nexusdb. I tried to add a BLOB Wide Memo field to a table using query. but i could not find the correct data type. i tried follow queries.
ALTER TABLE Test ADD COLUMN TestField BLOBWideMemo;
ALTER TABLE Test ADD COLUMN TestField NATIONAL CHARACTER LARGE OBJECT;
ALTER TABLE Test ADD COLUMN TestField BLOB Wide Memo;
Try this
ALTER TABLE Test ADD COLUMN TestField NCLOB

Creating dictionaries from large data sets in a spreadsheet or database file

Currently the data I want to incorporate into my dictionary is in two fields of an Excel spreadsheet and also in two fields of a database in FileMaker Pro.
Is there an easy way to create a Swift dictionary from this data?
FileMaker field [calculation, text] =
"var dict = [" &
executesql("SELECT keyfield, valuefield FROM table" ;":";"," ) &
"]"
produces code to create a swift dictionary of all records of 'table'.
~jens
edit: 'executesql' requires a rather recent FileMaker version, I think 12 or 13.
I'm not a swift programmer, just a FileMaker dev, but Jens' answer looks like the best one to me. If you're not familiar with FileMaker Pro, the easiest way to apply that might just be by creating a new GLOBAL field in 'table' and making it a "Calculated" field (make sure to set the result type to Text). Here's a sample file: http://cris.lc/d5zjl
I would add that if you're using FileMaker 11, there are plugins (like BaseElements) that will let you perform SQL queries -- the calculation function would be slightly different, though.
Reply here or PM me if you still need help in FileMaker!

How to create a column using initials of other column

I am making an app in IOS which makes use of database stored in .sqlite file. So i'm using core data to access my database.
Here i have a column in the table having names of persons,
What i want is to create a new column using this column's values like a hint(say only initials)
e.g. JOHNNY DEPP -> J##### D###
after googling for hours, i'm still in search of solution to this
Please suggest how to do it ..
either way(core data or .sqlite commands)
any help is appreciated, thanks in advance

DB2 not saving stylized apostrophe (’)

I am trying to insert a stylized apostrophe (’) into a table in DB2 LUW 9.7. Every method I have tried has resulted in it being a square () when selected back.
The methods I have tried to insert it:
Modifying and committing a row in Control Center (GUI)
Updating a row via SQL command in Command Editor
Loading from a file (both UTF-8 encoded and ANSI encoded) through IBM Data Studio 2.2
Is there a way to get this character into the database? If not, is there a list of characters that simply cannot be used?
What is the encoding of your database/tablespace? I suspect it needs to be set to UTF-8. You may need to create a new tablespace or recreate the database with the encoding explicitly set to UTF-8.
To determine the encoding, run the following command and look for the "Code set" information:
db2 get db cfg for <database name>
from Inserting an Apostrophe in DB2 table
insert into userid.empy values(1234,'RAM''');
You have put 2 Single Quotations, for a single quote to appear in the
table.
see also:
http://www.ibmmainframes.com/viewtopic.php?t=36901&highlight=apostrophe and
http://www.ibmmainframes.com/viewtopic.php?t=29213&highlight=apostrophe
if you are using the API, a good way is to prepare the statement and bind the quote-containing text to a parameter.
Remind that allowing someone to type in a quote and insert that unchanged (like sprintf(sqlstr, "INSERT INTO mytable VALUES ('%s')", inputstr);) may lead to an SQL-Injection.
my input:
test');drop database;insert into mytable values ('test
may lead to an empty database

Resources