Search found 33 matches

by syang@collaborative.com
Mon Oct 20, 2014 7:12 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need Help on Record insert and update for SCD Stage
Replies: 0
Views: 1401

Need Help on Record insert and update for SCD Stage

Hi guys, I am working with the Slowly Changing Dimension Stage, and I am trying to write some logic for a Record Update Date. These are the requirements: If the record is not current, the record update should never be updated. If the record is current, and the update is a Type2, then the record upda...
by syang@collaborative.com
Thu Sep 25, 2014 6:39 pm
Forum: General
Topic: DSjob Logging all jobs within Sequencer
Replies: 4
Views: 2258

Thanks for the reply guys. I wanted to log every parallel's job's log from the sequencer that was run.

I no longer need this done, but thanks for the ideas anyway.
by syang@collaborative.com
Wed Sep 24, 2014 7:43 pm
Forum: General
Topic: DSjob Logging all jobs within Sequencer
Replies: 4
Views: 2258

DSjob Logging all jobs within Sequencer

Hello guys, I am writing a script that will run a sequence job. Is it possible to log all of the parallel jobs that is involved with the sequence job? The -report DETAIL only provides the Name of Job, and the times (start, end, elapse). example: ************************************************** STA...
by syang@collaborative.com
Wed Sep 24, 2014 3:34 pm
Forum: General
Topic: log job details to log file from script
Replies: 8
Views: 2732

I swear I tried it earlier and it didn't work. Now after you've said to try adding the credential, I tried it, and it worked.

Working code:
%DsJob% -server %Server% -user %username% -password %password% -report %Project% %JobName% DETAIL >> %LogFileDir%

Thanks for your help.
by syang@collaborative.com
Wed Sep 24, 2014 2:01 pm
Forum: General
Topic: log job details to log file from script
Replies: 8
Views: 2732

I get the same error running it from the Dsjob.exe.
by syang@collaborative.com
Wed Sep 24, 2014 1:30 pm
Forum: General
Topic: log job details to log file from script
Replies: 8
Views: 2732

Hi Craig, Thanks for the quick reply. This is the actual execution code: %DsJob% -server %Server% -user %username% -password %password% -run -wait -jobstatus -paramfile %pramFile% -warn %warn_limit% %Project% %JobName% %DsJob% -report %Project% %JobName% DETAIL >> %LogFileName% New error: Waiting fo...
by syang@collaborative.com
Wed Sep 24, 2014 12:33 pm
Forum: General
Topic: log job details to log file from script
Replies: 8
Views: 2732

log job details to log file from script

Hi all, I'm once again stumped. I am trying to log the job details into a DS_job.log file. I'm getting the following error. Waiting for job... Finished waiting for job Job Status : (2) Status code = 2 Invalid arguments: dsjob -report [-useid] <project> <job|jobid> [report type>] report type = BASIC ...
by syang@collaborative.com
Wed Sep 24, 2014 8:37 am
Forum: General
Topic: run a batch script
Replies: 22
Views: 8901

Thanks for all your help guys. I decided to scrap the example script and just write one from scratch. No problems at the moment.
by syang@collaborative.com
Tue Sep 23, 2014 2:01 pm
Forum: General
Topic: run a batch script
Replies: 22
Views: 8901

The Windows Task Scheduler is going to run the job at a specific time for now. The Job runs correctly. The problem I'm having now is the script itself. I've narrowed it down by putting an echo statement after the "SET TGTSSODSDSN=<Target DSN>" line, and the echo doesn't print in the log. I...
by syang@collaborative.com
Tue Sep 23, 2014 11:57 am
Forum: General
Topic: run a batch script
Replies: 22
Views: 8901

MS SQL Server is not compatible with the built-in scheduler in DS Director. http://www-01.ibm.com/support/docview.wss?uid=swg21669154 The end goal is to grab a file when it is written in a folder, but as of right now, we have to get a script to run the sequence job. The script is not accepting Netez...
by syang@collaborative.com
Tue Sep 23, 2014 10:58 am
Forum: General
Topic: run a batch script
Replies: 22
Views: 8901

I will be only once a day, but it will vary everyday depending on when the MS SQL Server finishes its updates.
by syang@collaborative.com
Tue Sep 23, 2014 10:37 am
Forum: General
Topic: run a batch script
Replies: 22
Views: 8901

Thanks Craig, but the job I need to run is a Sequence job(email test for now). The OS the client is running is Windows Server 2012, so job scheduling in DS Director doesn't work. We are migrating from MS SQL Server 2005 to Netezza, and need to do incremental loading for the database daily. The batch...
by syang@collaborative.com
Tue Sep 23, 2014 9:06 am
Forum: General
Topic: run a batch script
Replies: 22
Views: 8901

Thanks. I didn't know that I didn't have to specify a path to where the jobs live. Is there a more simple example somewhere I could use? I couldn't find any except for the example posted here. I'm trying to accomplish running a single job when a "done" file appears in a folder. As soon as ...
by syang@collaborative.com
Tue Sep 23, 2014 7:46 am
Forum: General
Topic: run a batch script
Replies: 22
Views: 8901

Sorry for the confusion, I'm wondering where the DataStage jobs' folder is located, so I can access the job with the script.

Thanks.
by syang@collaborative.com
Mon Sep 22, 2014 4:10 pm
Forum: General
Topic: run a batch script
Replies: 22
Views: 8901

run a batch script

Hi all, I'm trying to run a job from DataStage using a Batch file. I am new to DataStage and new to Batch files. I'm using this batch file as a starting point. @echo off :: ----------------------------------------------------------------- :: Name: CommonProviderExtract.bat :: -----------------------...