Search found 210 matches

by sbass1
Mon Mar 23, 2009 2:57 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Deadlock condition when writing to SQL Server
Replies: 6
Views: 3311

Thanks Mike and Craig. I'd patterned my job after: http://etl-tools.info/en/datastage-tutorial-L008_scd-implementation-datastage.htm, and http://etl-tools.info/images/scd2-job-design.jpg which has two database stages, one to close out the old record and one to insert the new one. Perhaps it's my ext...
by sbass1
Mon Mar 23, 2009 4:50 am
Forum: General
Topic: Lookup data in hashed file using a routine?
Replies: 4
Views: 1991

chulett wrote:From memory - make a copy of the routine mentioned and then change the Open statement to OpenPath. No need for the VOC entry then, simply pass in the full path to the hashed file rather than just the name.
Thanks Craig, this worked great.
by sbass1
Mon Mar 23, 2009 2:03 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Deadlock condition when writing to SQL Server
Replies: 6
Views: 3311

Deadlock condition when writing to SQL Server

Hi, I've got a job that's doing SCD2 processing. It's also reading a hash containing the EffectiveDate, SK, and CRC value 3 times in the job, plus writing to it once. Here is a picture of the job: http://docs.google.com/View?docid=dcdxxjr8_16dv4w7rgv&pageview=1&hgd=1&hl=en Hopefully the ...
by sbass1
Sun Mar 22, 2009 7:27 pm
Forum: General
Topic: Lookup data in hashed file using a routine?
Replies: 4
Views: 1991

Lookup data in hashed file using a routine?

Sorry if this has been discussed before. I did search on "hashed file basic" and "hashed file routine" before posting. Is it possible to do a lookup against a hashed file in a routine? What I want to do is: SK = LookupDateSK(pInputDate,HashedFilePath) where pInputDate is derived ...
by sbass1
Fri Mar 20, 2009 5:02 pm
Forum: General
Topic: Best practice to test BASIC code?
Replies: 5
Views: 2412

I would prefer small routines, one for each test, maybe in a category called Test. More modular. As always Ray, thanks for the reply. You too Craig. At this point, I'm just testing code snippets, often things like iconv/oconv patterns, and how it handles bad data. For now, the "branch" ap...
by sbass1
Fri Mar 20, 2009 4:16 pm
Forum: General
Topic: how to pass the start timestamp of one job to another job
Replies: 5
Views: 2038

Why is it urgent? Why didn't you ask a week earlier? Why is it urgent on a Friday night? We don't do "urgent". DSXchange is an all-volunteer site whose participants post as and when they can, usually only if they have something useful to contribute. If you want urgent assistance sign up w...
by sbass1
Wed Mar 18, 2009 10:16 pm
Forum: General
Topic: Best practice to test BASIC code?
Replies: 5
Views: 2412

Best practice to test BASIC code?

1. How do you go about quickly developing and debugging your BASIC code before putting it in a job? What I'm currently doing is I've got a "dummy" routine with two arguments, Arg1 and Branch. If I need more arguments, I just compile them in the code rather than redefining the dummy routine...
by sbass1
Wed Mar 18, 2009 4:20 pm
Forum: General
Topic: Can I write to /dev/null on a reject link?
Replies: 7
Views: 4526

I could swear I had a situation where I had a Rejected row link, another link (updating a hashed file) where the constraint was Not(REJECTED), and this was the last link, but was still getting output rows when the row was rejected by the database (violate null constraints). My job output links cons...
by sbass1
Wed Mar 18, 2009 3:41 am
Forum: General
Topic: need to some clarification
Replies: 2
Views: 969

Welcome aboard. Probably easiest is to use sed as a filter command to change the two-character delimiter to a single character globally. I can recommend Perl, which is 1) free, and 2) (mostly) portable across Windows and Unix. Windows Perl can be downloaded here: http://www.activestate.com/activepe...
by sbass1
Wed Mar 18, 2009 3:22 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get Fiscal year from the date "2008-04"
Replies: 10
Views: 4870

The logic given by you was implimented by me before i knew it from you.After all, my question is..There is a function "GetFiscalYear()" under DSRoutine in transformer stage.How can this help us as in this regard. So the logic is If Month <= 3 Then Year - 1 Else Year Extract month and year...
by sbass1
Wed Mar 18, 2009 3:12 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get Fiscal year from the date "2008-04"
Replies: 10
Views: 4870

* Compile options $DEFINE DEBUG * Declare function DEFFUN FiscalYear(pDate) Calling "DSU.FiscalYear" * Declare constants Equate cRoutineName To "FiscalYear" * very cursory error check! If Len(pDate) NE 8 Then call DSTransformError(pDate:" not in YYYYMMDD format.",cRout...
by sbass1
Wed Mar 18, 2009 2:09 am
Forum: General
Topic: Copying routines across categories
Replies: 1
Views: 715

Copying routines across categories

Hi, Say we've got Routines categorized like: Routines AppName Utility Etc. Say we also want a category for routines under Development, say by each developer: Routines DEV Scott BillyBob Questions: 1) Is there a way I can copy a routine from one category to another? (Not apparent from the UI) 2) Sinc...
by sbass1
Tue Mar 17, 2009 9:44 am
Forum: General
Topic: Can I write to /dev/null on a reject link?
Replies: 7
Views: 4526

ps. There's no need to "set" them, that's handled in the generated code Thanks. Yes that's what I meant but didn't word well. I meant "If there is a way to ensure the REJECTED variables are set by DataStage without having a Reject link..." I could swear I had a situation where I...
by sbass1
Tue Mar 17, 2009 9:10 am
Forum: General
Topic: Best practice for handling a large variable list
Replies: 5
Views: 2464

Seems like this is why you've asked about the RowMerger stage. One thought... perhaps array notation would be more managable and would get you the Value Marks automatically. Use ArrayName<-1> to push an element onto the end of the array in a loop. And if you end up needing a different delimiter, th...
by sbass1
Tue Mar 17, 2009 8:25 am
Forum: General
Topic: Can the Row Merger stage concatenate a subset of the columns
Replies: 6
Views: 3534

I haven't used the RowMerger as much as the RowSplitter, but it might be worth looking at the history....these stages were not designed to perform any meaningful manipulation of the row (emphasis added) --- but to dynamically re-assign metadata (in memory) to an existing row that is coming down-str...