how to compile jobs from UNIX prompt

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
dsproj2003
Participant
Posts: 21
Joined: Wed Oct 01, 2003 11:53 am

how to compile jobs from UNIX prompt

Post by dsproj2003 »

Hi,

I have Datastage PX 6.0

I understand that jons reside in dir $dshome/Projects/.
-Can I access my jobs from this dir?
-How do I compile jobs from UNIX prompt?
-If so, then can I compile multiple (or all) jobs in one project using a single command/ script?

Thanks in advance for a prompt reply.

Regards,
Nitin
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No facility is provided by Ascential for compiling jobs from the command line on the DataStage server.
The CompileAll tool, available from this site, can be used to institute multiple job compilations (via standard Windows multi-select).

As for accessing your jobs from the Projects directory, this is only the default location; project directories can be created anywhere except in the root file system. The mechanism for accessing (as in interrogating and running) jobs from the server is via the dsjob command line interface.

Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Nitin

This has been covered in http://www.tools4datastage.com/forum/to ... C_ID=84630.

Kim.

Kim Duke
DsWebMon - Monitor DataStage over the web
www.Duke-Consulting.com
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Kim,

Not 100% certain that utility would work for PX jobs.

Ray

Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
bigpoppa
Participant
Posts: 190
Joined: Fri Feb 28, 2003 11:39 am

Post by bigpoppa »

Nitin,

For files ending with .osh, they are typically already "compiled". OSH is actually a scripting-like language that can be interpreted by the osh command. Typically, generated .osh files include an osh command followed by the OSH script, and these files can be run like any executable UNIX script provided that your runtime environment has all the necessary APT_* environment vars set.

HTH,
BP
Post Reply