| Date: | Wed, 24 Aug 2011 17:19:27 -0400 |
| Reply-To: | "Durrett, Cindy" <CindyDurrett@FDLE.STATE.FL.US> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Durrett, Cindy" <CindyDurrett@FDLE.STATE.FL.US> |
| Subject: | translate a macro code for me?? |
| Content-Type: | text/plain; charset="us-ascii" |
Hi all. I inherited some code for a program that I understand how the program works but I'm not sure what this part does - I think it has to do with making sure there's enough of a buffer for doing the matching / sorting / sql'ing that the rest of the program does (this is at the beginning of the program with a note that says 'DO NOT ALTER THIS CODE' - anyway, I was wondering if someone could "plain English" this for me - I'd like to understand more about what controls programmers can have with SAS for managing space, etc.
Thanks,
***************************************************************
%global buffer ;
%macro getparms(libfil);
%let lib=%scan(&libfil,1,.);
%let mem=%scan(&libfil,2,.);
proc sql;
select nobs, obslen into:nobs, :obslen
from sashelp.vtable
where libname=upcase("&lib") and memname=upcase("&mem");
quit;
%put;
%put Value of Lib= &lib;
%put Value of Mem= &mem;
%put;
%let newnobs=%eval(&nobs+1000);
%let buffer=%eval(&newnobs*&obslen);
%PUT Value of buffer= &buffer;
%mend getparms;
****************************************************************
Cindy Durrett
Florida Statistical Analysis Center
Crime Information Bureau, FDLE
850-410-7141
visit our website: http://www.fdle.state.fl.us/FSAC/
Florida has a broad public records law, and all work-related emails sent by or to me may be subject to public disclosure
|