Hi,
There are a few issues that make it difficult to answer your question. First, do you agree that the semicolons are missing? Second, your question
Why do I not need & in %last=first? first is a value and not reference. I dont understand it.
refers to code that isn't in your initial example. So we must assume, again, what you actually mean. In the line
%let last=first
the ampersand is technically not needed. You will howewever assign the text 'first' to variable last and that may not be what you want. So it may be functionally needed. In that case you will assign the value of first to last.
My advice: be clear in what you want to achieve and what your expected results are versus your actual results. You just leave too much guesswork for those that so clearly want to help you out in what is certainly a problem at beginners level.
And use %PUT statements to check your results while experimenting. Simple but effective.
Regards,
- Jan.
... View more