BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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.
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 539 views
  • 0 likes
  • 2 in conversation