BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RobP
Quartz | Level 8

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? 

1 ACCEPTED SOLUTION

Accepted Solutions
RobP
Quartz | Level 8

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.

View solution in original post

2 REPLIES 2
ballardw
Super User

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.

RobP
Quartz | Level 8

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.

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!

How to Concatenate Values

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.

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
  • 2 replies
  • 691 views
  • 1 like
  • 2 in conversation