You may need to share which SAS system you are operating under.
It may be worth trying a FILENAME statement to create a file reference instead of using the file statement in the data step to set properties. No promise.
And did you try Proc Export by any chance?
... View more