Writing subroutine
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 8
- Joined: Wed Mar 01, 2006 11:16 pm
Writing subroutine
I have made a unix script which runs as an after job subroutine in a map. Is there a way around that i write that script in DS itself so that when the map is migrated to some other environment i don't have to carry the burden of importing that script also?
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 8
- Joined: Wed Mar 01, 2006 11:16 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Just had to be sure. If you use Version Control for promotion all you have to is put the script (or a link to it) in any directory you have identified to Version Control as a "versioned folder" and Version Control will look after the migration of the script for you.
You can "write the script in DS" quite happily, as a before-after subroutine, but the programming language has to be DataStage BASIC.
You can "write the script in DS" quite happily, as a before-after subroutine, but the programming language has to be DataStage BASIC.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
If you are asking if we can call the unix shell script as an after job routine, YES, we can do it
go to job properties page..There you will see After-job routine drop down list.. select 'ExecSH' and in the input value text box - give the pathname and name of shell script along with arguments u want to pass to that shell script. ..
You can also use job parameters for path name, shell script name or shell script arguments
go to job properties page..There you will see After-job routine drop down list.. select 'ExecSH' and in the input value text box - give the pathname and name of shell script along with arguments u want to pass to that shell script. ..
You can also use job parameters for path name, shell script name or shell script arguments