How to add input box to sas sql query which ask user about parameter ? (Something aka Access input box) (in Enterprise Guide)
Are you using Enterprise Guide? If thats the case, you can create prompts which will create macro variables when you run your code. You will just have to use those macro variables in your code.
Right click your program > Properties > Prompts > Prompt Manager and so on. Have a look at it and see if it solves your problem.