in reply to Passing value from IF loop

It is unclear to me what you have tried. If you can edit the symcfg program, you should edit it and print all the environment variables. This will confirm if the variable is set properly. For example, if symcfg is Perl code, add:
use Data::Dumper; print Dumper(\%ENV);