Hi Gus,
Can u pls tell me
How can u Call the Shell Scripting/Unix Commands in Job
Sequence?

Answer Posted / pavan

Hi,

There are two scenarios where u myt want to call a script

Scenario 1(Dependency exists between script and a job):
Where a job has to be executed first then the script has to
run, upon completion of script execution only the sec job
has to be invoked. In this case develop a sequencer job
where first job activity will invoke the first job then
using Execute command activity call the script u would
desire to invoke by typing "sh <script name>" in the
command property of the activity, then with the other job
activity call the second job.

Scenario 2: (Script and job are independent) : In this case
right in your parallel job say job1, under job properties u
can find "After-job subroutine" where u need to
select "ExecSH" and pass the script name which you would
like to execute. By doing this once the job1 execution
completes the script gets invoked. The job succeeding the
job1 say job2 doesnt wait for the execution of the script.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the different sorting methods in datastage.

617


What are the steps required to kill the job in Datastage?

688


What is meta stage?

581


Can you define merge?

670


What is the difference between orabulk and bcp stages?

581






How a server job can be converted to a parallel job?

627


What are the different layers in the information server architecture?

647


How complex jobs are implemented in datstage to improve performance?

604


Define Merge?

882


how to add a new records into source?

1532


What are the important features of datastage?

623


What are the different plug-ins stages used in your projects?

630


What are the main features of datastage?

668


how to sort two columns in single job in datastage.

2549


What is orabulk stage?

639