Search found 15603 matches

by ArndW
Mon Aug 03, 2009 8:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convertion in a string
Replies: 2
Views: 884

The function would be

Code: Select all

Convert('#+-','   ',In.StringColumn)
by ArndW
Mon Aug 03, 2009 8:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reject Link
Replies: 3
Views: 1039

With a fixed width file any length errors are fatal. Or do you have a line separator defined?
by ArndW
Mon Aug 03, 2009 7:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Hex to decimal and Ascii conversion in Server jobs
Replies: 10
Views: 4100

You are making it too complex. the hex values you showed "31 32 33 34 35 36 37 38" are simple ASCII representations of the numbers you need, just read the field as ASCII instead of as a binary one.
by ArndW
Mon Aug 03, 2009 7:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Hex to decimal and Ascii conversion in Server jobs
Replies: 10
Views: 4100

Naah, I'm just doing long multiple job compiles and surf DSXchange while they run:)
by ArndW
Mon Aug 03, 2009 6:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Hex to decimal and Ascii conversion in Server jobs
Replies: 10
Views: 4100

Is it a pure binary format? Try reading it as "binary" into an integer.
by ArndW
Mon Aug 03, 2009 5:38 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Hex to decimal and Ascii conversion in Server jobs
Replies: 10
Views: 4100

For the moment, let us not use "hex" conversion, but ask what datatype you are converting from. Is is a COBOL type COMP-3 field? If so, there are builtin conversions in the SDK or the CFF stage available to you.
by ArndW
Mon Aug 03, 2009 5:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DataSet Advantages
Replies: 6
Views: 4565

DataSets can be backed up as well, and most development databases I know of are not backed up. DataSets are usually such that they can be re-created quickly as well.
by ArndW
Mon Aug 03, 2009 4:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DataSet Advantages
Replies: 6
Views: 4565

I have to disagree with Con #2. Both databases and dataset files are equally susceptible to data corruption.

DataSets are very fast when staying within the DataStage PX framework, much faster than database operations.
Database tables allow random access and updates/deletions. Datasets do not.
by ArndW
Mon Aug 03, 2009 4:31 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convert the source to HEX
Replies: 6
Views: 1434

Both the ACCT-N nor PERS-BRTH-D are COMP-3 fields and can be read as such using the CFF stage without having to do any Hex conversions.
by ArndW
Mon Aug 03, 2009 2:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convert the source to HEX
Replies: 6
Views: 1434

What datatype is Column A? If it is Char(1) or VarChar(1), just use "Char(37)" - Char() convert a decimal number to a character and 37 is the decimal value of 0x25
by ArndW
Mon Aug 03, 2009 1:45 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: trim(enter)
Replies: 2
Views: 1208

You can trim any character using the trim command, and the "enter" character on UNIX is <LF> which is Char(10), thus

Code: Select all

TRIM(In.YourString,Char(10))
to trim leading and trailing <LF>'s from the string.
by ArndW
Mon Aug 03, 2009 1:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: rcp doesn't work correctly
Replies: 11
Views: 2914

Your original subject/problem was not related to rcp. Your second (new) topic in this thread was related to rcp and was answered, even though it is better to keep only one topic per thread.
by ArndW
Sat Aug 01, 2009 8:36 am
Forum: General
Topic: sybase EE abort
Replies: 3
Views: 906

The userid question must be answered by your Sybase admin, most likely the GRANTs are insufficient. DataStage has no requirements - just that the ID you specify has sufficient access to perform the action required.
by ArndW
Sat Aug 01, 2009 8:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Effects of Partitioning on multiple columns
Replies: 2
Views: 1213

Just after I posted this thread the system I am working on came back up and I wrote a quick job to test this. I have now learned that DataStage takes a single hash of the combined keys and distributes accordingly. Thus, if I partition on "Name" and "Month" then a record with &quo...
by ArndW
Sat Aug 01, 2009 8:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Effects of Partitioning on multiple columns
Replies: 2
Views: 1213

Effects of Partitioning on multiple columns

Assuming I have a file with columns "Name", "Month" and "Salary" containing a company's employee names and their paid out salary values for months 1-12. If I explicitly hash partition on "Name" (primary) and "Month" (secondary) with a multinode confi...