Help using Base SAS procedures

The value of OBS

Reply
N/A
Posts: 1

The value of OBS

Does anyone know, how to find the value of OBS? I obviously know how to set it, but I'd like find out, what its current value is in the middle of a run. I'm particularly interested in errors, that create the OBS=0 situation.
SAS Employee
Posts: 160

Re: The value of OBS

Super Contributor
Super Contributor
Posts: 3,174

Re: The value of OBS

You will need to explain more clearly what you consider "OBS" and where it is being referenced in some SAS code, please? Preferably share SAS code where you are expecting some result associated with "OBS". For example, SAS PROC PRINT generates a column with column label OBS, by default.

Scott Barry
SBBWorks, Inc.
Super Contributor
Posts: 359

Re: The value of OBS

When an error causes OBS to be set to zero, it ia simply a way for SAS to continue checking syntax after stopping processing.
OBS=0 is not a symptom of the error, simply a tool to help you debug.
Ask a Question
Discussion stats
  • 3 replies
  • 135 views
  • 0 likes
  • 4 in conversation