Search found 42189 matches

by chulett
Tue Mar 17, 2009 8:58 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Clone static hashed file
Replies: 4
Views: 1197

If they are pathed, then yes. Otherwise, you'd need to worry about the VOC entry as well. And I wouldn't worry about changing the column names, columns are referenced by their internal position number, not name. So any time you reference a hashed file, you can call the columns whatever you like.
by chulett
Tue Mar 17, 2009 8:55 am
Forum: General
Topic: File validation method
Replies: 6
Views: 5345

You can automatically 'validate' XML as long as you have an xsd for them. While the stages support that, I find doing it from the command line a better practice, a more robust solution. As to 'validating' flat files, you'd have to explain what kind of validations you'd need to perform.
by chulett
Tue Mar 17, 2009 8:49 am
Forum: General
Topic: Can the Row Merger stage concatenate a subset of the columns
Replies: 6
Views: 3066

Actually you're doing CDD or Change Data Detection, not CDC. Why not just do as Vince posted? Read your landed data as one long delimited string, use calls to Field() to pull out the individual key fields and then one or more Field() calls can pull out everything else (whichever are contiguous) and ...
by chulett
Tue Mar 17, 2009 8:31 am
Forum: General
Topic: Best practice for handling a large variable list
Replies: 5
Views: 2100

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, the...
by chulett
Tue Mar 17, 2009 8:21 am
Forum: General
Topic: Can I write to /dev/null on a reject link?
Replies: 7
Views: 3393

ps. There's no need to "set" them, that's handled in the generated code, something you could check out if you are curious in the RT_BPnnn directory for your job. So just reference them in your "reject" links. Oh, and rejected means not only "didn't go down" but "di...
by chulett
Tue Mar 17, 2009 8:16 am
Forum: General
Topic: Can I write to /dev/null on a reject link?
Replies: 7
Views: 3393

Re: Can I write to /dev/null on a reject link?

When I click Constraints, Expression Editor Context Help ("..." button), Link Variables, Outputs..., I see what looks to be a global REJECTED variable, and individual link REJECTED variables. If there is a way to set the REJECTED variables without having a Reject link (Reject Row box tick...
by chulett
Mon Mar 16, 2009 2:27 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: WHO ran this job?
Replies: 3
Views: 1579

Ok, back in bottle now.
by chulett
Mon Mar 16, 2009 10:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Shell script from a Routine
Replies: 9
Views: 2780

greggknight wrote:output captures the return code of the script
Actually, that 'Output' variable captures whatever is sent to stdout by the script, which is why they 'echo $flag'. The one they named ReturnCode captures the return code.
by chulett
Mon Mar 16, 2009 10:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Wait for file in Routines
Replies: 7
Views: 1460

OK... so (bare bones) an "ls <pattern> |wc -l" perhaps, inside a loop, until it returns something other than zero.

ps. While "*.*" means any file on Windows, it certain does not on UNIX - that means 'any file with a dot in it'.
by chulett
Mon Mar 16, 2009 10:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: File descriptor out of range in fd_set
Replies: 9
Views: 9471

Interesting... thanks for posting that.
by chulett
Mon Mar 16, 2009 9:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: File name as system data and time
Replies: 2
Views: 871

Re: File name as system data and time

each time i run the job file name must be updated with system date and time. Does this mean you'll be appending to a file and want to rename it as well each time, or do you just mean each new file must have a current timestamp as part of its name? :? :idea: Not the first time someone has asked this...
by chulett
Mon Mar 16, 2009 8:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Wait for file in Routines
Replies: 7
Views: 1460

What does the routine need to do? Wait for how long? And then exit when files found? Or return the number of files? A list of file names?

Any of this can be done with O/S commands and DSExecute. Or all in a shell script you call.
by chulett
Mon Mar 16, 2009 8:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Shell script from a Routine
Replies: 9
Views: 2780

What I'd suggest is running the script in 'debug' mode like so: Cmd = 'sh -x /abc/test7.sh /home/test/xyz.csv' and then logging the Output variable. Then you should be able to see where it is going wrong.
by chulett
Mon Mar 16, 2009 7:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Shell script from a Routine
Replies: 9
Views: 2780

You'd have to be a wee bit more specific about what an 'uneven result' means. :?
by chulett
Mon Mar 16, 2009 7:32 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: return code in dsjob -run
Replies: 3
Views: 1148

Right, because a search would reveal no definitive answers posted as to what it means. Involve your official support provider. Post any results you get.