Help using Base SAS procedures

The code and error message regarding to import transport file issue above

Reply
N/A
Posts: 0

The code and error message regarding to import transport file issue above

The import code:

libname myin xport "C:\project\temp\peter\edc\ODI 1_0.xpt";
libname xptout 'C:\project\temp\peter\edc\';

proc copy in=myin out=xptout MEMTYPE=DATA;
run;

The log file with error:
NOTE: Input library MYIN is sequential.
NOTE: Copying MYIN.ODI 1_0 to XPTOUT.ODI 1_0 (memtype=DATA).
ERROR: The value ODI 1_0 is not a valid SAS name.
ERROR: File XPTOUT.'ODI 1_0'n.DATA has not been saved because copy could not be completed.
NOTE: Statements not processed because of errors noted above.
NOTE: PROCEDURE COPY used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds

NOTE: The SAS System stopped processing this step because of errors.
Super Contributor
Super Contributor
Posts: 3,174

Re: The code and error message regarding to import transport file issue above

Posted in reply to deleted_user
For the future, this type of post is more suitable for the forum named "SAS Macro Facility, Data Step and SAS Language Elements", rather than posting in the very first forum in the list.

Though you have not shared info at all about what you are attempting to accomplish (from-environment, to-environment, SAS version, to start), it's somewat clear that you are attempting to copy an XPORT format SAS dataset.

So, from the diagnostic and knowing SAS naming restrictions, I would say that your problem source is that a SAS data library member cannot have an imbedded blank character.

Suggest you renaming the XPORT format file and at least replace the "blank" with an underscore. You will also want to ensure that the file has been transfered in binary-format, as well.

Scott Barry
SBBWorks, Inc.


Moving and Accessing SAS Files between Operating Environments
http://support.sas.com/documentation/cdl/en/movefile/59598/HTML/default/moveacc.htm
Ask a Question
Discussion stats
  • 1 reply
  • 89 views
  • 0 likes
  • 2 in conversation