Hello,
I have the following script in my batch to load month and year dynamically. I pass the below parms to jobs in the batch.
Current_Month = OCONV(@Date,"DM")
Current_Year = OCONV(@Date,"DY")
However the result is
Current_Month = "9" and I would like that to be "09".
Any tip is appreciated.
Thanks!!
Help with @Date as "092014" instead of "92014
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 32
- Joined: Mon Apr 12, 2010 3:42 pm
- Location: Minneapolis
- Contact:
-
- Premium Member
- Posts: 32
- Joined: Mon Apr 12, 2010 3:42 pm
- Location: Minneapolis
- Contact: