Calling a script from datastage sequence job

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
kennyapril
Participant
Posts: 248
Joined: Fri Jul 30, 2010 9:04 am

Calling a script from datastage sequence job

Post by kennyapril »

After running the sequence job at the end I need to call a shell script to move the rejected files to an other folder i.e archive them.

please suggest me how can I do that?




Thanks
Regards,
Kenny
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Execute Command Stage perhaps !
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No perhaps about it. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kennyapril
Participant
Posts: 248
Joined: Fri Jul 30, 2010 9:04 am

Post by kennyapril »

Thanks,



I have a notification activity at the end if the sequence job,so can I use execute command after that.

also

In the parallel job properties>general there is an option after-job subroutine with drop down executeSH and needs an input value.

can I use that also,just wanted to know about it.

Please suggest
Regards,
Kenny
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Yes. You can use the after job subroutine option as well.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kennyapril
Participant
Posts: 248
Joined: Fri Jul 30, 2010 9:04 am

Post by kennyapril »

So in the input value of that option I need to give the path of the file where the script is located?





Thanks
Regards,
Kenny
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The full path to the script, yes.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kennyapril
Participant
Posts: 248
Joined: Fri Jul 30, 2010 9:04 am

Post by kennyapril »

Thanks for all the information!!
Regards,
Kenny
Post Reply