BookmarkSubscribeRSS Feed
PrasannaJ
Calcite | Level 5

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.

1 REPLY 1
ballardw
Super User

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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 752 views
  • 0 likes
  • 2 in conversation