APT_CONFIG_FILE error

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
kd813
Participant
Posts: 20
Joined: Wed Feb 22, 2006 9:14 pm
Location: pune

APT_CONFIG_FILE error

Post by kd813 »

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."
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

so it is lloking for exact value.
not sure if defining $APT_CONFIG_FILE in your user profile will help.
kd813
Participant
Posts: 20
Joined: Wed Feb 22, 2006 9:14 pm
Location: pune

Post by kd813 »

no its not.. as i have to change the value of the parameter at the run time
thats why i need to send it as parameter only
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

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.
kd813
Participant
Posts: 20
Joined: Wed Feb 22, 2006 9:14 pm
Location: pune

Post by kd813 »

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.
[ ...
So shall I replace the single quotes with double quotes or shall I removethem completely?
ThilSe
Participant
Posts: 80
Joined: Thu Jun 09, 2005 7:45 am

Post by ThilSe »

kd813 wrote:
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.
[ ...
So shall I replace the single quotes with double quotes or shall I removethem completely?
You may try using this:
$DSPATH/dsjob -param "\$APT_CONFIG_FILE"="${APT_CONFIG_FILE}" $PROJPM $Jobname
kd813
Participant
Posts: 20
Joined: Wed Feb 22, 2006 9:14 pm
Location: pune

Post by kd813 »

thanks it worked
Post Reply