10-03-2012 05:42 PM
if indexw((compress('ED','IP','AV',"'")),EncType) then output;
enctype has values
'ED','IP','AV' for each record.
I get the folowing error.
ERROR 72-185: The COMPRESS function call has too many arguments.
10-04-2012 05:39 AM
Refering to the documentation, compress compresses one string at a time, not multiple.
And why do you want to compress ' from hard coded strings apparently not containing that char?
My guess is that you want to see if EncType has any of the listed values...?
If the subset is the only logic you wish to use, a where clause should be more suitable:
where EncType in ('ED','IP','AV');