/***************************************************************************************************************** SAS file name: Variable_IORC_.sas File location: __________________________________________________________________________________________________________________ Purpose: To demonstrate how to think of the automatic variable _IORC_ in SAS Author: Peter Clemmensen Creation Date: 12/08/2019 This program supports the blog post "Understand the Automatic _IORC_ Variable in SAS" on SASnrd.com *****************************************************************************************************************/ /* _iorc_ exists and is initialized with value 0 */ data test1; set sashelp.class; put _iorc_=; run; /* _iorc_ is retained */ data test2; set sashelp.class; if _N_=5 then _iorc_=1; put _iorc_=; run;