print QUERY "libname datasets '/home/viii';\n";
print QUERY "\n";
print QUERY "\%gdefault;\n";
print QUERY "\%g_port_d;\n";
print QUERY "\%g_land;\n";
print QUERY "\n";
print QUERY "\%clc_ctrl(working.temp1, value, /home/jk);\n";
....
print QUERY "\%pcs(working.temp1, value, &lsl, &usl, &unit, $pcs_title, PE-PSE, /home/jk/data.ps);\n";
} else {
print QUERY "\%pcsa(working.temp1, value, &lsl, &usl, &unit, $pcs_title, PE-PSE,/home/jk/data.ps);\n";
}
can any one please explain what are %gdefault,%g_port_d,%g_land,%clc_ctrl,%pcs,%pcsa do .this is a piece of code written in perl script.Unable to find what does this commands do.is this userdefined variable or procedures or part of SAS functionality.
Thanks in advance.Please reply asap.
The SAS construct %XXXX refers to SAS macros, which generate code for SAS to execute. Without the actual SAS macro source code for each of the macros it really isn't possible to know what these bits of code do.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.