0% found this document useful (0 votes)
164 views

Datastage Admin Stop and Start Unix

This document provides a Bash script to stop and start a DataStage engine. The script uses the dsadm utility to switch to the root user, checks for active client connections using ps and grep, kills any connections, and then uses uv-admin to stop and start the DataStage engine process. It also includes an EQUATE program to retrieve parameter values from a parameter file.

Uploaded by

Selvam
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
164 views

Datastage Admin Stop and Start Unix

This document provides a Bash script to stop and start a DataStage engine. The script uses the dsadm utility to switch to the root user, checks for active client connections using ps and grep, kills any connections, and then uses uv-admin to stop and start the DataStage engine process. It also includes an EQUATE program to retrieve parameter values from a parameter file.

Uploaded by

Selvam
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

How i create datastage Engine stop start script. Actually my idea is as below. !

#bin/bash dsadm - user su - root password (encript) DSHOMEBIN=/Ascential/DataStage/home/dsadm/Ascential/DataStage/DSEngine/bin if check ps -ef grep DataStage (client connection is there) { kill -9 PID (client connection) } uv -admin - stop > dev/null uv -admin - start > dev/null verify process check the connection echo "Started properly" run it as dsadm go to the path /DATASTAGE/PROJECTS/DSENGINE/BIN/uv -admin -stopuv -admin -start ----------------------GetJobParameter(ParameterName) EQUATE ProgramName TO 'GetJobParameter' OPENSEQ 'ParameterFile' TO InFilePtr ELSE CALL DSLogFatal('Oh No, cannot open fi le',ProgramName) Finished = 0 Ans = '' READNEXT InRecord FROM InFilePtr ELSE Finished = 1 LOOP UNTIL Finished FileParameterName = TRIM(FIELD(InRecord,'=',1)) FileParameterValue = TRIM(FIELD(InRecord,'=',2,99)) IF (FileParameterName=ParameterName) THEN Finished = 1 Ans = FileParameterValue END READNEXT InRecord FROM InFilePtr ELSE Finished = 1 REPEAT IF NOT(Ans) THEN CALL DSLogFatal('Could not find value for "':ParameterName:'".' ,ProgramName) CLOSESEQ InFilePtr ---------------------http://www.dsxchange.com/viewtopic.php?t=93254%22 -----------------------------http://www.dsxchange.com/viewtopic.php?p=234001&sid=6f107bb346da19df5a6bb0f2312a 1352 ----------------------------------http://datawarehouse.ittoolbox.com/groups/technical-functional/ascential-l/unixcommand-to-run-a-datastage-job-3573329 --------------------------------------

You might also like