DATA Step, Macro, Functions and more

Invalid Logical Name

Reply
Contributor
Posts: 42

Invalid Logical Name


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.

Super User
Posts: 11,343

Re: Invalid Logical Name

Posted in reply to sambasiva_ravuri_tcs_com

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

Contributor
Posts: 42

Re: Invalid Logical Name

Thanks for quick response.


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

Regards,

S Ravuri.

Super Contributor
Posts: 1,636

Re: Invalid Logical Name

Posted in reply to sambasiva_ravuri_tcs_com

changing a.cust1 to a_cust1

Trusted Advisor
Posts: 2,116

Re: Invalid Logical Name

Posted in reply to sambasiva_ravuri_tcs_com

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

Learner
Posts: 1

Re: Invalid Logical Name

Thank you ballardw
Ask a Question
Discussion stats
  • 5 replies
  • 3584 views
  • 1 like
  • 5 in conversation