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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 651 views
  • 0 likes
  • 2 in conversation