RETAIN

/*data step without retain*/ 
data test2;
pre_set=new_var;
set SASHELP.CLASS;
new_var=Weight * 10;
run;
/*data step with retain*/ 
data test1;
retain new_var;
pre_set=new_var;
set SASHELP.CLASS;
new_var=Weight * 10;
run;

--

--

--

Consultant clinical statistical programmer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Making a Dash Mechanic for your game

Top Project Management Companies

Announcement on Delisting of AK, CXC, AXEL

How to deploy CockroachDB on IBM Cloud Kubernetes — Hands on guide

An easier way to update the entities’ operators/timestamp in dotnet

Instantiating & Destroying Gameobjects in Unity

*Abstract Class In Java*

BigQuery, Kafka and Kinesis Integration

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Christian Baghai

Christian Baghai

Consultant clinical statistical programmer

More from Medium

Minority Funding: Only One Hack That You Need to Know to Secure Yours

How to Optimize both your Innovation Portfolio and your New Year’s Resolutions

How to choose a right BIM outsourcing partner?

CS373 Spring 2022: Nisha Ramesh