Search found 8 matches

by sethuraman
Tue May 08, 2012 3:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal field validation
Replies: 2
Views: 2006

Decimal field validation

Hi, I have a input file and i read the value " 2222.22" as Char(12) and I convert it to Decimal(11,2). By the way, I should validate it as if it has only numbers and no other characters is there like " 33AB.33". If at all any characters found then i should reject the record. how ...
by sethuraman
Tue Apr 10, 2012 4:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Control characters(Junk chars) in flat files from SQL server
Replies: 9
Views: 4931

priyadarshikunal wrote:what is the value of APT_STRING_PADCHAR environment variable and what is the data type of the field where you see the junk characters?


Value for the param APT_STRING_PADCHAR = 0x20.

I get the junk characters for all kind of datatypes like varchar, char, smallint.
by sethuraman
Tue Apr 10, 2012 4:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Control characters(Junk chars) in flat files from SQL server
Replies: 9
Views: 4931

What you are getting if you use cat filename The control chars are at the end of the line or some where else? How you have configured the Sequential file stage? Whats the delimter you have specified? if i use cat <file name> then i find no control characters. but if i open it in vi <file name> mode...
by sethuraman
Tue Apr 10, 2012 4:15 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Control characters(Junk chars) in flat files from SQL server
Replies: 9
Views: 4931

if i use cat <file name> then i find no control characters. but if i open it in vi <file name> mode then it appears in front of few fields. I create file in Fixedwith mode. also i have tried creating comma seperated delimited file. nothing returns the exact output.
by sethuraman
Tue Apr 10, 2012 2:59 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Control characters(Junk chars) in flat files from SQL server
Replies: 9
Views: 4931

Hi, I have checked in the DB, no control characters found over there. i am viewing the file in Unix, VI editor mode.
by sethuraman
Tue Apr 10, 2012 1:16 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Control characters(Junk chars) in flat files from SQL server
Replies: 9
Views: 4931

Control characters(Junk chars) in flat files from SQL server

Hi, I just extract data from a SQL server table (MS SQL) and write it in a flat file. My job design is ODBC Conn ---> CPY ---> SeqFile I have 50 columns in it. after successful run, I get some control characters in the file like ^C or ^R. Be it Fixed width or Delimited, the file is not getting creat...
by sethuraman
Tue Dec 21, 2010 9:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Upsert in Oracle
Replies: 5
Views: 3492

Hi,

The ROW_ID column is indexed but I have not used Index HINTS. Is it must for all Upsert jobs?
by sethuraman
Tue Dec 21, 2010 8:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Upsert in Oracle
Replies: 5
Views: 3492

Upsert in Oracle

Hi, I need to perform upsert in a table using User defined SQL. My design is: Dataset----> CPY ----> Oracle Enterprice. For example my update query is: UPDATE Tablename set columnname = ORCHESTRATE.columnname where ROW_ID= ORCHESTRATE.ROW_ID I need to update for some 100000 records. This takes very ...