Search found 42189 matches

by chulett
Wed Sep 24, 2014 12:57 pm
Forum: General
Topic: log job details to log file from script
Replies: 8
Views: 2108

Code: Select all

%DsJob% -report %Project% %JobName% DETAIL >> %LogFileName% 
by chulett
Wed Sep 24, 2014 12:54 pm
Forum: General
Topic: log job details to log file from script
Replies: 8
Views: 2108

Have you tried leaving anything in square brackets out initially? They mean the parameter is optional. Also note that it says "useid" not "userid" and it is not expecting anything be passed along with it. Include "-useid" when you pass in the jobid (which you don't have...
by chulett
Wed Sep 24, 2014 12:22 pm
Forum: General
Topic: run a batch script
Replies: 22
Views: 5763

Cool... so I'm going to close this conversation out and if you have something else that comes up, let's just start a new post rather than continue to pile on this one.

Thanks.
by chulett
Wed Sep 24, 2014 8:20 am
Forum: General
Topic: Do we need a separate database for each ETL server?
Replies: 4
Views: 1881

Anything less than 8.x does not have an XMETA repository.
by chulett
Wed Sep 24, 2014 8:00 am
Forum: General
Topic: run a batch script
Replies: 22
Views: 5763

My "if" was a little... rhetorical. :wink:
by chulett
Tue Sep 23, 2014 3:35 pm
Forum: General
Topic: run a batch script
Replies: 22
Views: 5763

I run the script as followed: c:\script_folder\script_job.bat host username password project DSN_Name UserName Password JobName As noted already by priyadarshikunal, the batch / script as posted only expects four parameters on the command line. Anything after that is ignored and is expected to be h...
by chulett
Tue Sep 23, 2014 3:29 pm
Forum: General
Topic: run a batch script
Replies: 22
Views: 5763

Yup, the OP already noted that. Thanks.
by chulett
Tue Sep 23, 2014 1:39 pm
Forum: General
Topic: run a batch script
Replies: 22
Views: 5763

What's going to schedule the script?

I'm assuming you already have the job working outside of this script, yes? So if that's true and you already know the values the parameters need to have to run the job, if you still have an issue then it is specific to the script itself.
by chulett
Tue Sep 23, 2014 11:15 am
Forum: General
Topic: run a batch script
Replies: 22
Views: 5763

Don't really understand the "job scheduling in Director doesn't work" statement but I'll take it at face value. Regardless, still don't need a script. On the subject of once a day, schedule (however) the Sequence to start running first thing in the morning. The WFF will cause it to sit run...
by chulett
Tue Sep 23, 2014 10:31 am
Forum: General
Topic: run a batch script
Replies: 22
Views: 5763

On the subject of a Sequence job, at its most basic all we're talking about is a Wait For File stage and a Job Activity stage. Next question would be - how often during the day will this flag drop? It is quite simple to handle if it is once per day, if it can be multiple times during the day that co...
by chulett
Tue Sep 23, 2014 9:55 am
Forum: General
Topic: run a batch script
Replies: 22
Views: 5763

Knew that was yours, Kim. Or at least started off life as yours. :wink:

Syang - all you need is a Sequence job for that, no script required. No need to overly complicate things.
by chulett
Tue Sep 23, 2014 8:02 am
Forum: General
Topic: run a batch script
Replies: 22
Views: 5763

You're not sure where the jobs themselves live? That would be in each of your Project directories but that knowledge isn't needed in order to run them, all you need is the name of the project. You've picked quite a goofy example to start with. Usually a batch made to run jobs is generic and can run ...
by chulett
Mon Sep 22, 2014 3:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle sys_guid() function in DataStage ??
Replies: 4
Views: 2899

Not that I'm aware of. You'd either need to roll your own or just stick with the native functionality in your database.
by chulett
Mon Sep 22, 2014 10:38 am
Forum: General
Topic: Help with @Date as "092014" instead of "92014
Replies: 2
Views: 1106

Probably other ways but off the top of my head:

Current_Month = OCONV(@Date,"DM[2]")

Your month parameter will also have to be a string, of course.
by chulett
Sat Sep 20, 2014 9:12 am
Forum: General
Topic: Access DataStage UniVerse repository with ODBC
Replies: 7
Views: 3651

Can you detail for us the nature of the progress you made, what you've done to get this far? And also - you get that error message when / doing what exactly?