DATA Step, Macro, Functions and more

Plz help in understanding what below lines of code do in SAS in perl script.

Reply
N/A
Posts: 1

Plz help in understanding what below lines of code do in SAS in perl script.

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.

Super User
Posts: 11,343

Re: Plz help in understanding what below lines of code do in SAS in perl script.

Posted in reply to PrasannaJ

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.

Ask a Question
Discussion stats
  • 1 reply
  • 151 views
  • 0 likes
  • 2 in conversation