You can use variables, which are designated by a word beginning with ampersand (&).
First create the query with variables:
SELECT &COLUMN
FROM Q.STAFF
WHERE NAME=&NAME
Then to run the query:
RUN QUERY (&COLUMN=SALARY, &NAME='SMITH'
If the variable is not supplied in the run command, the user will prompted for the value (unless run in TSO batch mode).