Specify the name of an output data set to contain information about indexes and constraints OUT2= gives you information about all SAS data sets having the type or types specified by the MEMTYPE= ...
Use PROC CONTENTS to determine the size of each observation. (See Using the CONTENTS Procedure to Determine Observation Length.) Multiply the size of each observation by the number of observations.