I think it's possible; You mast put a variable in the SQL like this :
descrizione as &variable
where desclizione like 'AL%'
order by 001
and u can send variable (&variable) from CLP o RPG
If u will run from QM it ask for variable