Search found 53125 matches

by ray.wurlod
Thu Jan 13, 2011 4:52 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sequential File
Replies: 19
Views: 20686

You don't need a header line. Just test the file size. If it's zero, delete tile file. You could do this with DOS commands or with a custom DataStage BASIC. Something like this: FUNCTION DeleteFileIfEmpty(FilePathname) OpenSeq FilePathname to hFile Then Status vFileInformation From hFile Then vFileS...
by ray.wurlod
Thu Jan 13, 2011 2:16 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Can't get milliseconds on my timestamp
Replies: 4
Views: 1395

I had assumed you'd set the Extended property, since you were already talking about microseconds.
by ray.wurlod
Thu Jan 13, 2011 2:15 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: datastage job logic
Replies: 10
Views: 3157

If it's already in production, and working, why are you asking the question? If you worked with me, the rule would be "nothing is ever changed in production" - a proper software development lifecycle is followed.
by ray.wurlod
Thu Jan 13, 2011 2:12 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sequential File
Replies: 19
Views: 20686

Use an after-job subroutine (for example) to test the file for zero length and delete it if that is the case. If your file has a header line, check for file having just one line.
by ray.wurlod
Thu Jan 13, 2011 2:08 pm
Forum: General
Topic: Info Svr v8.1 Windows Install & Configure on a US DoD bo
Replies: 2
Views: 1430

Welcome aboard. I'm sure there are DoD installations - they have every bit of software ever created, after all! Last year I was involved in installing in Australia's DoD, though this was on AIX rather than Windows. But I am aware that other parts of Australia's DoD does have Information Server insta...
by ray.wurlod
Thu Jan 13, 2011 2:05 pm
Forum: General
Topic: Technical Explanation for lack of version control?
Replies: 12
Views: 5010

Better than that, our delightful weather permits two seasons per year. I'm currently playing my 104th season. Started in 1958.
by ray.wurlod
Thu Jan 13, 2011 4:46 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: datastage job logic
Replies: 10
Views: 3157

Then use a server job, where you CAN do a range lookup.
by ray.wurlod
Thu Jan 13, 2011 4:44 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup stage performance Versu Merge stage performance
Replies: 5
Views: 2846

Relative performance between Lookup and Merge stages is irrelevant, because they perform different tasks.
by ray.wurlod
Thu Jan 13, 2011 4:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Seperate dupes using one transfomer
Replies: 3
Views: 1342

Start by describing, in English, the algorithm that gets from the input to the output. For example, how does A A C come about?

Then answer the "why" question. This would be much more easily accomplished using two Transformer stages, it seems to me.
by ray.wurlod
Thu Jan 13, 2011 4:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Record and Final Delimiter String
Replies: 2
Views: 1992

You need Final Delimiter String property, not Final Delimiter, which is for a single character delimiter that might occur between the final column in the record and the record terminator.
by ray.wurlod
Thu Jan 13, 2011 4:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to assign a output column to an Environmental variable a
Replies: 1
Views: 1165

I don't think this is possible using DataStage, but it would indeed be possible using a script.
by ray.wurlod
Thu Jan 13, 2011 4:37 am
Forum: General
Topic: how to insert values into sql server table from ds routine
Replies: 5
Views: 8917

The ODBC calls will require an INSERT statement with parameter markers.
SQLAllocEnv()
SQLAllocConnect()
SQLSetConnectOptions()
SQLConnect()
SQLAllocStmt()
SQLPrepare() and SQLExecute(), or SQLExecDirect()
SQLRowCount()
SQLError()
SQLFreeStmt()
SQLDisconnect()
SQLFreeConnect()
SQLFreeEnv()
by ray.wurlod
Wed Jan 12, 2011 10:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Can't get milliseconds on my timestamp
Replies: 4
Views: 1395

Try

Code: Select all

StringToTimestamp(field,"%yyyy-%mm-%dd %hh:%nn:%ss,3") 
or

Code: Select all

StringToTimestamp(field,"%yyyy-%mm-%dd %hh:%nn:%ss,%sss") 
or

Code: Select all

StringToTimestamp(Convert(",",".",field),"%yyyy-%mm-%dd %hh:%nn:%ss.3") 
by ray.wurlod
Wed Jan 12, 2011 10:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: datastage job logic
Replies: 10
Views: 3157

I assumed you'd use a separate stream for each style of processing, given that their rules differ. To generate multiple records, create a lookup containing just a list of dates, and do a range lookup between the max date from the data and the current date.
by ray.wurlod
Wed Jan 12, 2011 10:30 pm
Forum: General
Topic: How can you tell if a system has Datastage running on it?
Replies: 3
Views: 2167

Neither. Neither engine has its own process. The DataStage RPC daemon listens for connection requests from clients. But, if DataStage is running (that is, has been started), then dsrpcd will be running. You might also like to use netstat -an | grep 3153[1,3] to determine whether the node and logging...