BookmarkSubscribeRSS Feed
sambasiva_ravuri_tcs_com
Calcite | Level 5


Hi All,

Am executing the below program in UNIX SAS and am while executing this program in UNIX, am encountering error like "Invalid Logical Name". I think this is related to file name statement. Please correct me what exactly am missing here ? Appreciate for help.

options obs=max compress=yes;

libname a "/project1/one/d071212";

filename a.cust1  pipe "gunzip -c /root/share/file1..GZ";

data a.comp1;
infile a.cust1  missover lrecl=4000 recfm=f;
input

@1 CUSTOMER_NAME             $EBCDIC22.          
@23 CUSTOMER_ID                $ebcdic10.

Regards,

S Ravuri.

5 REPLIES 5
ballardw
Super User

a.cust1 is not valid for a filename. letters, numbers and underscores only.

sambasiva_ravuri_tcs_com
Calcite | Level 5

Thanks for quick response.


Please suggest me the valid file name , how can I use it ?

Regards,

S Ravuri.

Linlin
Lapis Lazuli | Level 10

changing a.cust1 to a_cust1

Doc_Duke
Rhodochrosite | Level 12

The fileref follows the sas naming conventions.  See the documentation for validvarname

http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000279245.htm

cstead
Calcite | Level 5
Thank you ballardw

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
  • 5 replies
  • 7243 views
  • 1 like
  • 5 in conversation