Page 1 of 1

Required Proj Name to a AutoSys job

Posted: Wed Oct 11, 2006 8:06 pm
by durgaps
Hi,

I have a sequence job being triggered by a AutoSys job. There is a requirement that the AutoSys job requires the DataStage Project name.

There is only one project setup on the DS Server.

Is there any Environment variable that will pass the project name to the AutoSys job. I searched through the archives but could not find any.

Thanks,

Posted: Wed Oct 11, 2006 8:58 pm
by chulett
I assume you are using 'dsjob' from AutoSys. You need to pass the Project name on the command line to dsjob. Sure, you could setup an environment variable and use that or - since there's only one - just (gasp) hard-code the Project name in the AutoSys job. :wink:

Posted: Thu Oct 12, 2006 8:05 pm
by manojkumarnayak
after all Autosys passes the project name to (dsjob). U can provide project name in various ways. you can find all the listed projects by

dsjob -lprojects

Posted: Thu Oct 12, 2006 9:13 pm
by kduke
Do not have autosys run dsjob directly. Put it in a shell script or a batch file if on Windows.

Posted: Thu Oct 12, 2006 9:14 pm
by ray.wurlod
The reason, if you think about it, is obvious. Unlike DataStage clients, dsjob is not connected to any particular project; it's just out there in the operating system. So you have to inform it in which project the job in question resides. The same job name might exist in more than one project (for example dev, test and prod).