Hello,
Can anybody suggest how to change Environmental varaible through Job parameter
for Eg: 'StartDate' i have declared the user defined environment variable and assign YYYYMMDD
now when in job parameter $SRDPARAMETER am assigning $PROJDEF
Now my requirement is through Job parameter i want to update date in Environment variable'START DATE'
Warm Regards,
Vinita Bhate
How to change the Environment variable in Server job
Moderators: chulett, rschirm, roy
How to change the Environment variable in Server job
Regards and Thanks,
Vinita Bhate
Vinita Bhate
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Your problem is that the shell in which the job runs is closed when the job finishes. So, while you could generate a new value for an environment variable (in an after-job subroutine), this would be destroyed when the environment (that is, the shell) is closed. No shell can update an environment variable in its parent shell.
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.
You might find a better answer for your issue if you tell us what you are trying to acomplish, who knows people here might have other ways to get it done.
IHTH (I Hope This Helps),
IHTH (I Hope This Helps),
Roy R.
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
![Image](http://www.worldcommunitygrid.org/images/logo.gif)
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
![Image](http://www.worldcommunitygrid.org/images/logo.gif)