Search found 109 matches

by Havoc
Mon Feb 18, 2008 4:37 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parameter: Max Length
Replies: 11
Views: 7158

Yes, you can use the ereplace() function to convert "'" to "\'", i.e. EREPLACE({string},"'","\'") ... Thanks ArndW, you're a lifesaver :) Solution: Removed the sed which was piped along with the cat and used the CommandOutput from the Execute Command and used...
by Havoc
Mon Feb 18, 2008 4:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parameter: Max Length
Replies: 11
Views: 7158

I think you will need to escape even the = character. I had a problem with that once. it is considered as a delimiter or something and it would stop at the = character. Thanks for the reply Maveric, but looks like the = character needn't be quoted. Earlier SQLs with = have been executed successfull...
by Havoc
Mon Feb 18, 2008 3:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parameter: Max Length
Replies: 11
Views: 7158

Is there anything similar in the places where the parsing stops? As Stefan noted, it might be special characters. ... ArndW as you suggested, I ran the shell script that parses the file and the output from the shell script at the Unix command prompt is cut short and not at DataStage level. The code...
by Havoc
Mon Feb 18, 2008 3:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parameter: Max Length
Replies: 11
Views: 7158

Is there anything similar in the places where the parsing stops? As Stefan noted, it might be special characters. ... ArndW as you suggested, I ran the shell script that parses the file and the output from the shell script at the Unix command prompt is cut short and not at DataStage level. The code...
by Havoc
Mon Feb 18, 2008 3:46 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parameter: Max Length
Replies: 11
Views: 7158

It could be that you need to "escape" special characters before passing them to a job as parameters. Example select col1, col2, col3 from a.table where datcol = '2008-02-18' needs to become select col1, col2, col3 from a.table where datcol = \'2008-02-18\' Thanks for the reply frost. Yes,...
by Havoc
Mon Feb 18, 2008 3:39 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parameter: Max Length
Replies: 11
Views: 7158

The 1169 looks very much like the limit from your command line, not from DataStage. Try using Google to search for "{your UNIX} maximum command line" to get additional information. ... I tried the search but I didnt find any results that could help me. The funny part is, i am passing two ...
by Havoc
Mon Feb 18, 2008 2:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parameter: Max Length
Replies: 11
Views: 7158

Parameter: Max Length

Hi, I have a sequence design which uses an Execute Command Activity stage which 'cat's an SQL file and passes the CommandOutput as a value to a parameter in a job. The problem is that the whole SQL is not being passed to the Parameter. The total number of characters in the SQL file is 1169. I have b...
by Havoc
Fri Jan 11, 2008 3:16 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rejected records from both Primary and Reference table
Replies: 5
Views: 2252

Re: Rejected records from both Primary and Reference table

All, Input: Table A - Primary link A.key1 Table B - Reference link B.key1 Output: 3 Output Files - Get all the records which are in both the tables(A.key1=B.key1) - Records which are there only in table A - Records which are there only in table B Is the above output possiable using single look up s...
by Havoc
Wed Jan 09, 2008 9:39 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Most effective way to define a constraint
Replies: 5
Views: 2525

When the lookup fails, the reference input columns are all set to NULL by the Transformer stage, which invalidates the use of "=" and "<>" operators. You can test the link variable NOTFOUND f ... But if the nullity of the columns from the reference link is set to 'Not Null' , th...
by Havoc
Fri Dec 07, 2007 2:28 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: sql queries for stages
Replies: 3
Views: 2132

select 'What do you mean?' from dual where stage_name in ('FUNNEL','AGGREGATOR','MERGE','PIVOT') Sorry, but that's all that came to mind when I saw your post. Perhaps someone else has something more constructive, but I honestly have no idea what you are trying to find out here. There are no 'sql qu...
by Havoc
Thu Nov 29, 2007 1:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Query regarding Lookup Stage
Replies: 2
Views: 2055

Re: Query regarding Lookup Stage

I have one query regarding Lookup Stage. In the previous post of this forum some body had mentioned the lookup as in-memory lookups . So I want to know, how many types of lookup present in Lookup Stage , and how do they differe in implemention, in result as well as in performance too. Thanks & ...
by Havoc
Fri Nov 23, 2007 12:52 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Use of stages from "Development/Debug" area of the
Replies: 3
Views: 2259

Re: Use of stages from "Development/Debug" area of

I'd been advised not to use a column generator because 'if its in the "Development/Debug" section of the palette its only to be used in Development or debugging - and not in live jobs." What's your opinion, is there anything wrong with using "Development/Debug" stages in li...
by Havoc
Fri Nov 23, 2007 2:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: scratch disk space,conductor,players,section leader
Replies: 2
Views: 2056

Re: scratch disk space,conductor,players,section leader

4friends wrote:please explain me about these

1.scratch diskspace

2.conductor

3.section leader

4.players

5.score
You could try the following:

For:-

1. Manuals that come along with installation
2-5. Search the forum
by Havoc
Fri Nov 23, 2007 2:28 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how i find the end date based on the previus record eff_date
Replies: 3
Views: 2080

Re: how i find the end date based on the previus record eff_

this is the example My source is DB2 No Name Bank Flag Eff_date End date 1 aaa city Y 2007-11-22 9999-12-31 1 aaa hdfc N 2007-11-19 9999-12-31 1 aaa icici N 2007-11-18 9999-12-31 Based on this I want to derive END_DATE based on the effective date of the prevous records when ever the sourgate key co...
by Havoc
Wed Oct 31, 2007 3:47 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: merge the two files
Replies: 10
Views: 5236

Re: merge the two files

Hi I hava a two seq files file1 ENO,ENAME 101,ABC 102,BBB 103,DDD FILE2 SAL,AGE 50000,45 7000,66 8000,77 I sove this problem using this seqfile1----->surrogatekey--- merge---->seqfile seqfile2--> surrogate key------ my problem is i want to target out like this, any posibility out put ENO ENAME SAL ...