Variable Names in SAS & Python

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #49429
    rlochan2021
    Keymaster

    In Python Variable Names:- it can be only one word, only can use letters, numbers & underscroes in it.
    can not start with a Number.

    In SAS Variable Names:-
    SAS variable names may be up to 32 characters in length.
    The first character must begin with an alphabetic character or an underscore. …
    A variable name may not contain blanks.
    A variable name may not contain any special characters other than the underscore.
    A variable name may contain mixed case.

    other than restriction on length of Variable names in SAS other rules for
    Variables Names are similar for both of them.

    #51885
    rlochan2021
    Keymaster

    Also Variable names in SAS is case insensitive but in python you should be careful as it is not.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.