Hello, I have the following DATA step which should read in 2 observations with 3 variables: data want; input Name1 $ Num1 Name2 $10.; datalines; testing 444 dd small 33321 asdfasdfas ; run; The $10. informat is necessary to read in all of "asdfasdfas". This gives the following output: Obs Name1 Num1 Name2 1 testing 444 2 dd . 3 33321 . If I use $ instead of $10. the data will be correct except it cuts off asdfasdfas at the 8 characters, as is the default. I know that SAS reads datalines with padded zeros, but why does the informat cause "dd" to not be read correctly? This issue does not happen if I store the datalines in the txt file and read that data in with an INFILE statement. Thanks!
... View more