As the first step in the decommissioning of the site has been converted to read-only mode.

Here are some tips for How to share your SAS knowledge with your professional network.

Tips:Use the OBS= Option to Save Time While Testing

From sasCommunity
Jump to: navigation, search

Prior to submitting your code against the full dataset, it should be tested using a limited number or zero observations. This can be done via the OBS= or FIRSTOBS= system options or data set options.

Note that the systems options, if set at the top of the program, will limit the observations for the entire program, including all datasets, procedures, etc. The dataset options will only limit the observations for the procedure or data step that the option is specified on.

Specifically, including the following code at the top of the program allows syntax checking mode, and runs the program with no observations.

    Options obs=0;

After the code is checked using a limited number of observations, it can be resubmitted allowing all records necessary to flow through the program. In this case, the user would want to change the line above to:

    Options obs=max;

Submitted by Stefanie G. Reay. Contact me at my Discussion Page. more