I have a sas programme with a data or sql
for a one variable in my data or sql, i want to get :
1- listing for the transformation of my variable
2- excetuting the data step or sql that contains my variable..
if i want to check for one variable name: delta, I want to have some thing likes this :
Step 1 : listing the transfomation
delta=2*v,
format delat 4.;
or
select delta,
where deleta=
Step 2: listing the data or proc sql or that contains delta
data toto;
delta=2*v,
....
run;
proc sql;
select delta,
quit;
Step 3: Executing the data or proc that contains the variable delta
Thank you
Be careful. There are many ways in SAS to get or change the value of a variable without mentioning its name. There are also many ways to access a variable through an alias. Also, some automatic variables get their values changed as side effects.
And that's only for plain SAS language. Add macro processing over that and the prospect of reverse engineering SAS code becomes elusive.
PG
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.