Just read Olivier's answer to your last question:
"You can use this shortcut : VAR var2: ; which stands for 'all variables having their name beginning with "VAR2" '
So why don't you just write "VAR var:" ?
Below my more complicated approach before Olivier reminded me how to do things.
You can also use a syntax like "VAR x -- c". This gives you all the variables like they are stored in the table (NOT alphabetically: it's COLNUM! This returns all the vars between Colnum of X to Colnum of C).
select name into :VarList separated by ' '
where libname='WORK' and memname='HAVE' and upcase(name) like upcase('var%same')
order by name;