Search found 32 matches

by bmsq
Thu Oct 19, 2017 6:58 pm
Forum: General
Topic: How to get/set Project NLS settings from command line
Replies: 0
Views: 2118

How to get/set Project NLS settings from command line

We regularly create and deploy DataStage projects from version control as part of a suite of Continuous Delivery and DevOps tools. This process handles project level settings by capturing the DSParams file but we have recently discovered that this does not include NLS settings. I'm aware of the DSNL...
by bmsq
Mon Aug 08, 2011 2:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to sum the number on the csv file
Replies: 14
Views: 9091

I've done similar logic in 7.5 without a pivot in the past. Can't remember the exact logic. If you leave each CSV record as a string, you can use a column import to pack each field into an array (or was it a vector column). Once in this format, you can use a combination of he restructure stages (inc...
by bmsq
Thu Oct 02, 2008 10:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Getting Handle of Job Controller
Replies: 6
Views: 3492

Hi all, I found a rather sneaky work around that will allow me to use the built in checkpoint routines with custom job control. As stated in my previous post, you can use the DSCheckpoint* routines (as used by restartable sequences) in Custom Job Control/Batch job. Unfortunately I've found this to b...
by bmsq
Thu Sep 25, 2008 10:43 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Getting Handle of Job Controller
Replies: 6
Views: 3492

Thanks for your responses guys. There are two reasons why I'm trying to get the controller handle. The first is some simple info/warn messages which I want to pass to the controller. The API provides a built in log to controller function but this is only for info messages, not warnings. Ray's code p...
by bmsq
Thu Sep 25, 2008 8:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Getting Handle of Job Controller
Replies: 6
Views: 3492

Getting Handle of Job Controller

Hi all, I'm writing some custom Job Control and I need to be able to get the handle of a job's controller. Sounds easy right? Using the GetJobInfo to get the name of the Controller works as advertised, but I also need the controller's instance id so that I can attach to the correct instance of the j...
by bmsq
Sun Jul 13, 2008 6:02 pm
Forum: General
Topic: Server side Force Compile all
Replies: 0
Views: 1511

Server side Force Compile all

Hi all, We are using Kenneth Bland's compile all job control as part of our deployment process. Works great if we deploy to a fresh project, but jobs will fail with errors related to Transformer .o files when deploying to an existing project. When these errors occur, a force compile from the client ...
by bmsq
Sun May 11, 2008 4:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Windows Vista hiding the expression editor
Replies: 11
Views: 4428

Thanks ray, probably sound advice. I was just about to start use XP in a VM when I discovered the problem. Turns out this wasn't a vista problem at all and could occur on older windows as well. Dunno why, but Dell (or some software that gets installed on them at the factory) changes a registry setti...
by bmsq
Thu May 08, 2008 11:23 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Windows Vista hiding the expression editor
Replies: 11
Views: 4428

Hi all, I'm having the same problem. I've tried disabling Aero and using various compatability modes but have had no luck. I did some investigation and it looks like DS executes another application (vmdsflt.exe) to display the popup box causing the issue. You can avoid closing the designer by killin...
by bmsq
Fri Aug 03, 2007 12:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DSExecute with sqlplus giving ORA error
Replies: 6
Views: 4477

Thanks Chutlett, The full routine includes WHENEVER OSERROR EXIT 1 WHENEVER SQLERROR EXIT 1 Anyway, the issues has been resolved. Our environment actually has two databases, only one of which was causing the error. Turns out the Environment support guys only tested one database from the command line...
by bmsq
Thu Aug 02, 2007 10:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DSExecute with sqlplus giving ORA error
Replies: 6
Views: 4477

Thanks for your response guys, As stated the shown DS code is a cut down version of what we are actually using. The real code has a debug switch to log information at all steps using DSLogInfo. This is why I'm sure what I've executed manually was EXACTLY the same as what is performed in DS Basic. Al...
by bmsq
Thu Aug 02, 2007 7:08 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DSExecute with sqlplus giving ORA error
Replies: 6
Views: 4477

DSExecute with sqlplus giving ORA error

Hi guys, We are in the process of migrating our DS jobs from our Dev and testing environments to our SVT/PROD environments. However, in doing so we seem to have uncovered a rather baffling problem when trying to execute sqlplus from DS basic using DSExecute. Here is a cut down version of our Execute...
by bmsq
Tue Jul 03, 2007 12:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Enterprise - DS Partitioning & PARALLEL=FALSE Opt
Replies: 0
Views: 955

Oracle Enterprise - DS Partitioning & PARALLEL=FALSE Opt

Hi guys, We are using the Oracle Enterprise stage and the Direct path data loading. Our tables have indexes and are partitioned so we use the maintenance index mode. Since this implies the oracle options DIRECT=TRUE and PARALLEL=FALSE, how should we be setting up partitioning in DataStage? Currently...
by bmsq
Tue Jun 19, 2007 4:30 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DataStage Parallel Routines and Malloc/New
Replies: 8
Views: 11909

Thanks guys for helpful answers! The the DS Engine will free the returned char array, well that makes life a little easier then. Is there any way I can get DS to out put the generated C code for a given transformer? I'm generally a curious fellow when it comes to things like this and would love to s...
by bmsq
Tue Jun 19, 2007 12:13 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DataStage Parallel Routines and Malloc/New
Replies: 8
Views: 11909

On the topic of memory allocation within a DataStage px routine, I found this example px routine (thanks DSguru2B) #include "stdio.h" #include "string.h" #include "stdlib.h" char* pxEreplace(char *str, char *subStr, char *rep, int num, int beg) { char *result = (char *)...
by bmsq
Mon Jun 18, 2007 11:51 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DataStage Parallel Routines and Malloc/New
Replies: 8
Views: 11909

DataStage Parallel Routines and Malloc/New

Hi all, I'm just about to start experimenting with DataStage Parallel routines. Before working with DataStage, C and C++ were my primary languages of choice and I'm therefore quite comfortable in writing a px routine. However, I've done a bit of reading of the DS manuals and some of the threads in t...