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: Call for Content

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 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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