compile jobs on a specific category

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
jusami25
Premium Member
Premium Member
Posts: 84
Joined: Tue Oct 26, 2004 12:49 am

compile jobs on a specific category

Post by jusami25 »

Hi all,

I'm trying to compile all the jobs of a specific folder using the command dscc.

Code: Select all

dscc /h HostName /u User /p Password /j /jobs/Folder/* Project
The problem is that the command compiles all the jobs in the project and not the ones that are placed on the /jobs/Folder/

Any suggestion?

Thanks in advance.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Multi-job compile !!??
sun rays
Charter Member
Charter Member
Posts: 57
Joined: Wed Jun 08, 2005 3:35 pm
Location: Denver, CO

Post by sun rays »

Go to Manager--> Tools-->Run Multiple JobCompile
jusami25
Premium Member
Premium Member
Posts: 84
Joined: Tue Oct 26, 2004 12:49 am

Post by jusami25 »

Thanks Sun and Sainath for you replies.

We know the existence of the multiple-job compile tool, but we need to do it using an scheduled script and because of this we use the dscc command.

Any suggestion about how to do it using the command?

regards
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You cannot directly. You could think about generating a list of the job names in that specific category, landing them and then looping though the list and compiling them one-by-one.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I have a command which can execute TCL commands. Do a search. I discussed how to get a list of jobs in a category. You need to run this and feed this list into dscc.exe. So if you have to do it this way then it can be done. This command is included with EtlStats. It is called Dwn_ExecTCL.exe.
Mamu Kim
jusami25
Premium Member
Premium Member
Posts: 84
Joined: Tue Oct 26, 2004 12:49 am

Post by jusami25 »

Hi all,

finally we created a script which reads the jobs names from a test file and compiles job by job.

Thanks for your suggestions.
virgenie
Participant
Posts: 3
Joined: Mon Oct 22, 2007 8:46 am

Re: compile jobs on a specific category

Post by virgenie »

jusami25 wrote:Hi all,

I'm trying to compile all the jobs of a specific folder using the command dscc.

Code: Select all

dscc /h HostName /u User /p Password /j /jobs/Folder/* Project
The problem is that the command compiles all the jobs in the project and not the ones that are placed on the /jobs/Folder/

Any suggestion?

Thanks in advance.
In V8.1, you can do dscc /d domain /u User /p Password /h HostName /j \Jobs\Folder\* Project
Post Reply