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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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