How can we call xmetaAdmin.bat from a datastage job

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
jreddy
Premium Member
Premium Member
Posts: 202
Joined: Tue Feb 03, 2004 5:09 pm

How can we call xmetaAdmin.bat from a datastage job

Post by jreddy »

I need to write a maintenance job to clean up operational metadata, but the cleanup script is on the services tier, while the jobs are running from engine tier. This is a windows installation, so the xmetaAdmin.bat script is the one I want to call.
When i write a job to execute the command
\\#ServicesTierServerName#\C$\IBM\InformationServer\ASBNode\bin\xmetaAdmin.bat <all params as needed>

I get an error that says 'Error: Could not find or load main class com.ibm.xmeta.admin.AdminCommand'

Any suggestions how to make this work, thanks in advance !!
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You need to create a batch file on the server side that includes setting all the required environment variables (not least PATH and CLASSPATH) before executing any required command.

Do you really need the C$ in the pathname?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply