This procedure prints the information about the dataset in the output window, including the number of variables, observations, index of the variable in the dataset, etc.
proc contents data=dataname1; run;