Page 1 of 1

How can we call xmetaAdmin.bat from a datastage job

Posted: Sun Jun 03, 2018 4:43 pm
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 !!

Posted: Sun Jun 03, 2018 10:03 pm
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?