Page 1 of 1

can you explain me how to call shell script in datastagejob

Posted: Tue Dec 04, 2007 1:10 am
by siva.k82
can you provide the details of shell scripting how to call datastage job

Posted: Tue Dec 04, 2007 1:16 am
by kunal1101
You can use before job/after job subroutine in job properties to call shell script.Scroll down to 'ExecSH' and input your command in 'input value'

Posted: Tue Dec 04, 2007 1:24 am
by kunal1101
The other option is using execute command activity in sequence.

Re: can you explain me how to call shell script in datastag

Posted: Tue Dec 04, 2007 5:54 am
by swapnilverma
siva.k82 wrote:can you provide the details of shell scripting how to
call datastage job
You can use after/before job script as indecated by Kunal.
In case you are preparing the input file of script in the ds job itself and requires the o/p file of script to use in ds job you can have after/before STAGE job script.

Hope it helps...

:idea:

Posted: Tue Dec 04, 2007 9:51 pm
by siva.k82
kunal1101 wrote:You can use before job/after job subroutine in job properties to call shell script.Scroll down to 'ExecSH' and input your command in 'input value'
Thanks a ton

Re: can you explain me how to call shell script in datastag

Posted: Mon Dec 17, 2007 2:54 am
by siva.k82
Thanks for sharing knowledge
swapnilverma wrote:
siva.k82 wrote:can you provide the details of shell scripting how to
call datastage job
You can use after/before job script as indecated by Kunal.
In case you are preparing the input file of script in the ds job itself and requires the o/p file of script to use in ds job you can have after/before STAGE job script.

Hope it helps...

:idea:

Posted: Thu Dec 27, 2007 4:57 pm
by jdmiceli
Also, just FYI in case you don't already know this:

You can reference DataStage parameters when calling the shell scripts. So, if you needed to pass job specific information to the script, you can reference parameters just like elsewhere in the job (standard #param# notation).

Hope that helps!

Posted: Thu Dec 27, 2007 4:58 pm
by jdmiceli
Also, just FYI in case you don't already know this:

You can reference DataStage parameters when calling the shell scripts. So, if you needed to pass job specific information to the script, you can reference parameters just like elsewhere in the job (standard #param# notation).

Hope that helps!