I need to move my files from Windows -> Linux. Same version of SAS (9.4 TS1M5).
When I run proc cport, I am getting the message:
ERROR: The variable name wk_net7_start is illegal for the version 6 file DEST.DATES.DATA.
NOTE: Set the VALIDVARNAME=V6 option to enable automatic truncation of long variable names.
How can I prepare the files for transfer without any naming truncation?
Turns out the problem was with my code. I had:
proc cport library=source out=dest;
run;
... instead of...
proc cport library=source file=dest;
run;
Simple mistake to make (difficult to debug) as I previously was trying xport which uses the former convention.
Do you have some actual SAS version 6 data sets? That is what the error implies. In those data sets variable names are limited to 8 characters. You may need to look at the definition of the libraries involved.
As a minimum it might not hurt to show the actual code along with the error from log.
Turns out the problem was with my code. I had:
proc cport library=source out=dest;
run;
... instead of...
proc cport library=source file=dest;
run;
Simple mistake to make (difficult to debug) as I previously was trying xport which uses the former convention.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.