%let ini_value=100;
data _null_;
infile "/path/config_sinx.ini";
file "/path/config_sinx.ini.new";
input;
if scan(_infile_,1,"=") = "sinx_index"
then put "sinx_index=&ini_value.";
else put _infile_;
run;
data _null_;
rc = filename("fref","/path/config_sinx.ini");
rc = fdelete("fref");
rc = rename("/path/config_sinx.ini.new","/path/config_sinx.ini","file");
rc = filename("fref");
run;
As already mentioned, this will probably change ownership and permissions of the file and make the application unusable. Or it might fail altogether because the user running SAS does not have the necessary permissions for the file or its parent directory.
... View more