Search found 112 matches

by chetan.c
Fri Aug 10, 2012 8:16 am
Forum: General
Topic: EXECSH at the end of a job called by a sequence
Replies: 21
Views: 8467

Anyways, glad its working as you required :)
by chetan.c
Fri Aug 10, 2012 7:50 am
Forum: General
Topic: EXECSH at the end of a job called by a sequence
Replies: 21
Views: 8467

The job should have aborted as per the below link.
Even I tried it out, it just logs a warning.

http://www-01.ibm.com/support/docview.w ... wg1JR36642
Thanks,
Chetan.C
by chetan.c
Thu Aug 09, 2012 7:11 am
Forum: General
Topic: EXECSH at the end of a job called by a sequence
Replies: 21
Views: 8467

As I feared this will not work. i get the message: ECHO is not really a command that goes here. In your .sql file at the beginning you must include the whenever sqlerror exit sql.sqlcode echo $? does not come in the .sql file. By script I meant the Unix script. There is a shell script in which you ...
by chetan.c
Thu Aug 09, 2012 6:31 am
Forum: General
Topic: EXECSH at the end of a job called by a sequence
Replies: 21
Views: 8467

...and that is exactly what I do not know how to do. Include this in the .sql file whenever sqlerror exit sql.sqlcode Above can also be customized like whenever sqlerror exit 67 This returns the number of the associated Oracle error. In the script echo $? Gives the return code of command executed ,...
by chetan.c
Tue Aug 07, 2012 4:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Abort Job when no files found (Extrnal Source Stage)
Replies: 5
Views: 3603

Hi, This code will abort the job if there are no files found. if ls #path#/REPO.*.2012-07-11*.txt >/dev/null 2>&1;then cat #path#/REPO.*.2012-07-11*.txt |sed '1d:$d';else exit;fi The better way would be as Shane suggested ,not to trigger the job itslef if file is not found. Thanks, Chetan.C
by chetan.c
Mon Aug 06, 2012 7:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Capture rejects of different schemas to a single table
Replies: 8
Views: 4171

Chetan.C tells us that the table design has yet to be defined. I think that doing that is the absolutely vital first step - what information about data errors does Chetan.C need to capture? :) Well , Chetan.C has been asked to see how best he can be showing the data without any specification as to ...
by chetan.c
Mon Aug 06, 2012 7:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Capture rejects of different schemas to a single table
Replies: 8
Views: 4171

chulett wrote:Sure, I've seen them too. But more interested in what our friend Chetan.C has to say on the subject. It's their table after all. :wink: ...
:) I did ask the same question , and the answer was "what's way the best way we can be showing this ?" ... so decided to give it a try.
by chetan.c
Sat Aug 04, 2012 6:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Capture rejects of different schemas to a single table
Replies: 8
Views: 4171

Capture rejects of different schemas to a single table

Hi, I have 3 Oracle Tables with different schemas. Each table has a reject link and the rejected records are captured in a Sequentail file. The rejected records need to be captured in a target table whose definition is not yet defined as it depends on how we can capture these records. Kindly let me ...
by chetan.c
Tue Jul 24, 2012 8:29 am
Forum: General
Topic: Best practice to pass DB password as Parameter
Replies: 5
Views: 2235

Just encrypted the password and used it in the job.Its working fine.
Thanks Arnd and Ray.
by chetan.c
Tue Jul 24, 2012 6:32 am
Forum: General
Topic: Best practice to pass DB password as Parameter
Replies: 5
Views: 2235

Thanks Ray.
I'm currently using it to encrypt the Datastage password.
Will extend it to the DB password too.

Thanks,
Chetan.C
by chetan.c
Tue Jul 24, 2012 5:33 am
Forum: General
Topic: Best practice to pass DB password as Parameter
Replies: 5
Views: 2235

Best practice to pass DB password as Parameter

Hi,

I would like to know what is the best practice to securely pass the DB password to a job.

Currently I have it defined as Environment variable(encrypted).
Is this the best way to do it?

All the other required parameters are fetched from the table.

Thanks,
Chetan.C
by chetan.c
Mon Jul 23, 2012 2:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Scenerio with datastage limitations
Replies: 9
Views: 9100

For the first question, you can concatenate the ".txt" to the filename column within a transformer. The code does this. field1=index($0,","); Find out the position of "," which I'm assuming as the delimiter between Filename and the record($0 the entire row). substr($0,f...
by chetan.c
Fri Jul 20, 2012 7:51 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Scenerio with datastage limitations
Replies: 9
Views: 9100

Re: Scenerio with datastage limitations

...capture each data seperatly in respective file given below also there order should be retrieved as it present in input file Hi , Had found this on dsxchange itself. In a parallel job use an External_target stage and use the below code in the program box. cd /your_directory;awk '{field1=index($0,...
by chetan.c
Tue Jul 10, 2012 2:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Startup time high in jobs having a DB operation
Replies: 11
Views: 5457

...add $APT_STARTUP_STATUS and $APT_PM_PLAYER_TIMING to your job set to True in both environments. Compare and contrast. ... Hi Craig, I added the 2 environment varibales $APT_STARTUP_STATUS and $APT_PM_PLAYER_TIMING to the job and this is the pattern I found for all DB look up tables. Environment ...
by chetan.c
Mon Jul 09, 2012 7:35 am
Forum: General
Topic: Shell script takes longer execution time in DS than prompt
Replies: 8
Views: 3778

Hi, Its been a long time but we have a work around for this. We raised a PMR for this, the reply that we got was its "normal" for Datastage to take the extra time to load XMETA libraries etc. What we did was to use an external source stage for this and dumped a portion of the Unix script t...