Tip of the Day

From sasCommunity
Jump to: navigation, search

sasCommunity Tip of the Day

Prior to submitting your code against the full dataset, it should be tested using a limited number of, or no, 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.



Feel free to comment on this tip.


Prior tip - Next tip -- Random Tip

Submit a Tip


 

Tips Index by Status

Currently in Use | Yet to be Scheduled | Still Under Review | Tip Awaiting Refinement

Search Tips:


The Tip of the Day Project

A new technical Tip of the Day related to SAS software will be shown on this page and the sasCommunity.org main page every day. Before getting started, you can Browse and Search the current list of tips contributed by users.

Anyone can participate. We hope you do! Here's how:

  1. Submit a Tip by posting a SAS tip that you think others might find useful
  2. Review a Tip prior to publishing
This effort is similar to, and was motivated by, the WikiPedia Tip of the Day Project. Please tell us what you think