@d6k5d3 wrote:
I am wondering why SAS would read TIME as numeric in one dataset and character in another. I used PROC IMPORT to open the datasets. The datasets were exported by SAS, and while exporting TIME was formatted as "time.20.". I even tried guessingrows= max. But no help!
What causes SAS to do so? Any way to get rid of that?
You're using a guessing proc, it makes the best guess it can. My guess is there's something in one that it can't read so it sets the column to be a character instead. A lot of blanks or if there's a character in a row can cause this.
@d6k5d3 wrote:
I have around 60 variables. Is copying the code from log and fixing where needed the only option?
60 variables isn't actually that much, copying the code from the log and fixing it is your best bet. You only need to do it once, if you know the data sets are identical. Take that program and copy/paste it and change the file path for the second. You can hold down ALT+SHIFT while highlighting to avoid copying the line numbers. Or ALT+CTRL, don't remember exactly but one of those works.