My statment is almost an exact copy of the paper statement, so I am not sure what you mean by it not matching. When you use the : identifier, it will scan through your observation until ANY of the following happens after which it stops. First: it reads the length of the specified input statement, in your case 5 characters. Second, it comes to a delimiter as defined by the delimiter option (default is a space), third, it reads the end of the variable (variable is length 5, but only 3 characters are found). In your example you only have 1 variable since you do not have a delimiter. Therefore, using ANY form of input statements besides column input is going to leave the color variable blank. All you are doing with specifying lengths the way you are is telling sas when to stop the reading of the first variable. I actually specified what sas was doing earlier in my post dated "May 7, 2013 1:31 PM". I will repost it below with a little more explanation, but again let me know if I am not answering your question. Your original post used input to say "Grab 2 variables from the following data source (datalines), that are seperated by a Space delimiter". "For the first Variable, I read in DAISYYELLOW, however you tell me its length is only 5, therefore I remove everything after the fifth Btye.. AKa everything after Daisy". "I then move onto the next data point, as determined by the space delimiter..." "You do not have another datapoint, therefore I set Color to Blank, and finish". Does that make sense and answer your question?
... View more