Short answer to your question is 'Yes'. You can use variables instead of libraries, files, aliases.... I think, your problem is setting variables in CL - quotes to be more specific. In your case &MBRX should look like 'ABCD' - no extra quotes required. Not sure about other variables. Also, all variables for SETVAR must be character. Provide more information about other variables and the answer will be more detailed. Hope this helps.