11-23-2013 10:38 PM
i tried the same and i can see that the macro variable was created without any problem.
I hope you wish to get the value of the f variable within the dataset f into a macro variable called g. if this is the case then your code should work well. Was there any error or warning reported while executing the code.
11-24-2013 12:38 PM
Very perplexing indeed! I got access to a SAS 9.3 machine and didn't have any issues with the code (see screen shot). I ran the program twice...once with separated by "" (quote-quote) and the second time separated by " " (quote-space-quote) and as you can see, both times worked correctly. Although how you would use the first macro variable without any separators is another puzzle.
However, I'd recommend that you work with Tech Support on this, An I/O error is something that needs to be investigated more thoroughly, where someone looks at your entire log, at the *EXACT* message and at various settings that might impact the execution.
11-24-2013 12:59 PM
Cynthia's suggestion to work with tech support is a good one.
If you want more thoughts from here, might suggest you write a little program that creates work.f, followed by your proc SQL step. Then batch submit that program and see if you get the same I/O error. And if you do, post the code and log here for others to try running and see if they get the same error.
The SQL step you showed could be copied straight out of a macro language course. Must be something odd going on.