Pardon me for replying to my own question but I have some more information to add.
If I start sas by double clicking on a sas icon pinned to the startmenu or taskbar
the following code works:
filename DIR pipe "dir /B";
data dirlist ;
length file $20;
infile DIR length=reclen;
input file $varying20. reclen;
proc print data = dirlist;
However, if I start sas by clicking on "Start -> All Programs -> SAS -> SAS 9.2 (English) that same code results in this error:
NOTE: The infile DIR is:
Unnamed Pipe Access Device,
There is not enough space on the disk.
NOTE: 0 records were read from the infile DIR.
I am at a loss to figure out why. Both shortcuts seem to be set up identically. If I
drag the SAS shortcut that was pinned to the startmenu to the desktop and start SAS from that, it fails with the error.
We are running SAS 9.2 on Windows Server 2008. I need to understand the reason for this error so that I can modify the code to run no matter how sas is started.