I create a flat file in one of my job sequences. I'd like to archive it with a date and timestamp at the end of my job sequence.
Any elegant/simple ways to do this?
TIA,
Cathy
Renaming file in Unix at the end of a job sequence?
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
Re: Renaming file in Unix at the end of a job sequence?
Create a sh script and call it as after Job routine please check box after Job Run Sucessfully Bu doing this it will only run if the run sucessfully
cbres00 wrote:I create a flat file in one of my job sequences. I'd like to archive it with a date and timestamp at the end of my job sequence.
Any elegant/simple ways to do this?
TIA,
Cathy
ram1899
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Call a shell script from an after-stage subroutine or after-job subroutine. Specify ExecSH as the subroutine, and add the pathname of the shell script plus any command line arguments (which can be job parameter references) in the Input Value field.
Or you can write your own before/after subroutine - perhaps a clone of ExecSH but with different logging characteristics - and invoke that instead.
Or you can write your own before/after subroutine - perhaps a clone of ExecSH but with different logging characteristics - and invoke that instead.
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.