Thanks for the suggestion. The PROC FORMAT won't be useful in this case, since I would have to continually add date values, etc. What I want is to automate this process, by the example stated above. I just want to loop values of i for one observation at a time until a condition is satisfied, then move on to the next observation and start the loop over (in this case, starting over means starting at i=9) and continue to loop through values of i until the condition days le (i*30.5)+14 is met. Do you know if there is a way to accomplish this? Basically telling SAS to read in an observation, hold it there, try different values of i (starting at 9, incrementing by 3) until days le (i*30.5)+14 is true, then move on to the obs and start the process over. Thanks!
... View more