I am using this command to pass the APT_CONFIG_FILE parameter using dsjob
$DSPATH/dsjob -param '$APT_CONFIG_FILE=$APT_CONFIG_FILE' $PROJPM $Jobname
When i pass the path istead of $APT_CONFIG_FILE in the command the job runs succseeflle but whn i pass it as paramenter as in the above command its giving me the following error
"main_program: ##$APT_CONFIG_FILE=$APT_CONFIG_FILE does not exist or is not a file or symbolic link to one.
##Fatal Error: Cannot continue without a configuration file."
APT_CONFIG_FILE error
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 783
- Joined: Mon Jan 16, 2006 10:17 pm
- Location: Sydney, Australia
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Single quote characters (hard quotes) are meaningful to the shell. Among other things, they prevent resolution of environment variable characters and expansion of wildcards. Lose the hard quotes.
Code: Select all
-param $APT_CONFIG_FILE=${APT_CONFIG_FILE}
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.
So shall I replace the single quotes with double quotes or shall I removethem completely?ray.wurlod wrote:Single quote characters (hard quotes) are meaningful to the shell. Among other things, they prevent resolution of environment variable characters and expansion of wildcards. Lose the hard quotes.
[ ...
You may try using this:kd813 wrote:So shall I replace the single quotes with double quotes or shall I removethem completely?ray.wurlod wrote:Single quote characters (hard quotes) are meaningful to the shell. Among other things, they prevent resolution of environment variable characters and expansion of wildcards. Lose the hard quotes.
[ ...
$DSPATH/dsjob -param "\$APT_CONFIG_FILE"="${APT_CONFIG_FILE}" $PROJPM $Jobname