Using $PROJDEF in basic
Moderators: chulett, rschirm, roy
Using $PROJDEF in basic
Hi all
I would like to pass the $PROJDEF keyword between a job control (in basic) and ordinary jobs.
None of them have environnement variable and the result is that the $PROJDEF is never changed to "real" value.
Do you know a way to force the evaluation of $PROJDEF ?
Thanks fof helping.
I would like to pass the $PROJDEF keyword between a job control (in basic) and ordinary jobs.
None of them have environnement variable and the result is that the $PROJDEF is never changed to "real" value.
Do you know a way to force the evaluation of $PROJDEF ?
Thanks fof helping.
So, actually a job parameter who's defined value is $PROJDEF in the job? Just want to confirm first as it doesn't stand on it's own and I get the impression you are trying to use it that way.
Can you be more specific as to how you are passing this around?
Can you be more specific as to how you are passing this around?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Chulett
unfortunately i can't read the premuim content.
Here is what i do :
After reading an ini file who contain :
$My_DB=$PROJDEF
I got exactly the same thing in my job control.
When i use dssetparam(jh1,My_local_DB,$PROJDEF) then $PROJDEF is not set to environnment value but stay '$PROJDEF'.
The job jh1 doesn't have the $My_DB variable in his parameters.
Am i clearer ?
Thank you
unfortunately i can't read the premuim content.
Here is what i do :
After reading an ini file who contain :
$My_DB=$PROJDEF
I got exactly the same thing in my job control.
When i use dssetparam(jh1,My_local_DB,$PROJDEF) then $PROJDEF is not set to environnment value but stay '$PROJDEF'.
The job jh1 doesn't have the $My_DB variable in his parameters.
Am i clearer ?
Thank you
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
$PROJDEF is only used as the default value of a job parameter.
To have it evaluate, simply don't provide any non-default value for that parameter when requesting a job run.
To have it evaluate, simply don't provide any non-default value for that parameter when requesting a job run.
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.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Well that's not horribly difficult, but you can't use $PROJDEF.
Getting the value from the environment can be done via the env command (perhaps called through DSExecute), then that value can be used as required.
If the value is not available in the shell environment, then it could be read directly from the DSParams file for the project.
Getting the value from the environment can be done via the env command (perhaps called through DSExecute), then that value can be used as required.
If the value is not available in the shell environment, then it could be read directly from the DSParams file for the project.
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.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Hi gurus
One of my teammate report me a "bug" in the GetEnvironnementVariable routine.
The commande Call DSExecute("UV", "ENV", Output, ExitStatus) does not retrieve all the Environnement Variable (ex APT_CONFIG_FILE).
My verification does not work for parallel job.
Thank you
One of my teammate report me a "bug" in the GetEnvironnementVariable routine.
The commande Call DSExecute("UV", "ENV", Output, ExitStatus) does not retrieve all the Environnement Variable (ex APT_CONFIG_FILE).
My verification does not work for parallel job.
Thank you
Hope This Helps
Regards
Regards