Date
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 12
- Joined: Mon Oct 22, 2007 7:58 am
Re: Date
yes.
study parallel extender PDF .
in that you can find this.
study parallel extender PDF .
in that you can find this.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Can you be more specific about your use of the term "parameter"? Is this a job parameter, or do you simply need the current date within your job design? Either is possible, but we'd prefer to answer the correct question.
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.
I have an input file name of which the date is a part.
An example file name is: abc102307
(102307 which is todays date.)
I know that we have date functions which we can use but that would be in the transformer. I would like to get the current date incorporated as a part of the filename before any processing starts.
So, I was thinking if we there was any environment variable which could accomplish this.
Thanks.
An example file name is: abc102307
(102307 which is todays date.)
I know that we have date functions which we can use but that would be in the transformer. I would like to get the current date incorporated as a part of the filename before any processing starts.
So, I was thinking if we there was any environment variable which could accomplish this.
Thanks.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can pick up the date from the @DATE system variable when assigning the job parameter value in your job sequence. You probably want to convert this to a "human readable" format in the assignment expression, for example
Code: Select all
Oconv(@DATE,"D-YMD[4,2,2]")
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.