A value from UNIX script? How you want to pass that? One (of many)
possibilities is SYSPARM= in the SAS call.
I'm not sure how the syntax is under UNIX, but I think you can do it like:
In SAS you can reference to it by &SYSPARM (or the SYSPARM() - function,
which is not adequate in your case).
%if &sysparm=J %then %let kp=here the variable list...;
On Thu, 12 Oct 2006 08:27:30 -0700, bhargav.desai@GMAIL.COM wrote:
>I have a datastep wtih KEEP statment. What I want to do is keep two
>variables, var1 and var2 when certain value say i, is passed from Unix
>script. If value passed is J then i need to keep var2 and var3. If
>no value is passed, then I want to keep all four variables.
>How can I do that?