Datastage Admin Stop and Start Unix

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 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