Command Reference : Function Reference : Function Reference: O
  
 
@obssmpl
Number of observations in the current workfile sample.
Syntax: @obssmpl
Return: integer
Examples
The following set of commands
workfile u 1000
series y = nrnd
smpl if @abs(y) < 1.2
scalar trim = @obssmpl
creates a workfile, sets a sample based on values of randomly generated Y then creates a scalar object TRIM containing the number of Y observations with absolute values less than 1.2.
Cross-references
See also @obsrange and @obsid.