Help using Base SAS procedures

Proc Export not working?

Reply
Occasional Contributor
Posts: 11

Proc Export not working?

Hi,

I am using the below code for exporting a tab delimited text file. But somehow I am getting an error "Invalid Physical Name"

PROC EXPORT

DATA =sasdata.INTMD_PLAN_LEVEL_DATA2 outfile= "~\Plan_Level_Data" DBMS = DLM REPLACE;

   DELIMITER = '09'x;

RUN;

Could anyone tell me whats wrong with the code. Thanks in advance Smiley Happy

Super User
Super User
Posts: 6,497

Re: Proc Export not working?

Are you running on Unix?  Try replace ~ with your actual home directory path. And using / instead of \ between the directory levels.

Super User
Posts: 6,928

Re: Proc Export not working?

If your SAS process runs on UNIX, replace ~ with $HOME and the backslash(es) with forward slash(es).

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 2 replies
  • 350 views
  • 0 likes
  • 3 in conversation