A text string is returned because it is text with commas in it, but help doesn't say what the datatype of the listed items should be, which leads me to believe they could be anything and apparently in 6.5 it could be integers. In 7.6 I attempted to do a set var (set var vlist = (listof(blno)) from .....) and it sometimes worked and sometimes did not. It often failed where the Listof was going to return only one or two numbers so it wasn't a function of the length.
Karen > Karen, > > I happened to be looking at the LISTOF function of SELECT yesterday with my > SRPL oddity and the help does indicate that a text string is returned. Maybe > that's the clue... > > I didn't like the way that SRPL was apparently forcing me to put my spaces > in the list (extracted in practice from a LISTOF result) so I went about it a > different way in the end. One of the (many) joys of R:Base is that there are > always other ways to these things. > > Another oddity is that the same section of help has an example of replacing > in LISTOF text using SRPL with a space so I was even more puzzled. Thanks to > Buddy &Dennis for their enlightenment, though, since the space in the > variable does work. > > Regards, > Alastair. > >

