10-05-2017 05:04 PM
1. I have a simple index defined on var1 in sas data set : one
2. when appending the data to the sas dataset in step1 with the new data set for ex: two the index that is already defined for the dataset one is lost.
please see the below code.
data class(index=(name/unique)); /* index created on name in the work.class*/
proc contents data=class;
data class1; /* index is not there in the work.class1*/
set class (where= (name = 'Alfred'));
proc contents data=class1;
set class class1 ;
proc contents data=class; /* index is lost in work.class*/
kindly let me if I am doing some thing wrong.