O'Reilly logo

Custom Tasks for SAS Enterprise Guide Using Microsoft .NET by Chris Hemedinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adapting the Sample

The sample on support.sas.com focuses on one aspect of the data size—the length of a character variable. When you allocate the size of a variable using the LENGTH statement, you tell SAS how many bytes of storage to reserve for the values of that variable in each row. If that size is larger than it needs to be, then your SAS data set might occupy more storage space on disk than is necessary.

The sample program examines the data set, down to each value of each character variable. It calculates the minimum length necessary to accommodate the current values in the data. It creates an output data set with all of the data values, but it changes the size allocations for each character variable to be the minimum length that is necessary. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required