Proc IMPORT - csv files - avoid variables names as VARx -


After using PROC import, I sometimes have dataset variable names in the form of VAR2 or VAR3 ... (Based on previous column reading). In the CSV file, there is a name in the column that is not "VARx".

How to import variable "VARx" into SAM import from SAS?

  proc import file = "location_of_file \ file.csv" out = csv; DBMS = CSV replaced; Guessingrows = 32767; Getnames = yes; Run; Proc Print Data = CSV; Run; ============================================ AUAG ID NAME VAR3 1 1 Xxx yyy 2 2 zzz aaa  

The column names in the CSV file are named as the ID name and password

thanks rbrt

If the column names in the first record are not valid in the input file then class = "post-text" itemprop = "text" >

The SAS name, then the import process uses the default variable names.


Comments

Popular posts from this blog

mysql - How to enter php data into a html multiple select box -

java - Can't add JTree to JPanel of a JInternalFrame -

c++ - Cassandra datastax cpp driver - avoiding unnecessary copies -