Hello,
The delete command removes entire objects, not individual observations. In addition, the length of an alpha series is dependent on the workfile page's observations, so you cannot "shorten" the alpha series without removing observations from the workfile page. If that's what you want, to affect the entire page, then take a look at the pagecontract command.
Considering your prior thread on a related topic, I'm guessing you still just want some kind of list of all the unique elements (excluding blanks) in an alpha series. Here's another solution that may be of greater use to you:
Code: Select all
svector uniques = @uniquevals(@convert(alpha, "if alpha <> """""))
where "alpha" is the name of the alpha series. The call to @convert generates an svector containing the non-blank elements of the alpha series, which is then filtered by @uniquevals to extract only the unique elements. Note that an svector is used to hold the subset of elements from the alpha series because the length of an svector is
independent of the workfile page's observations.