>
http://ftp.sas.com/samples/A58176 For 7-7
Clearly program 7-7 is too fragile to handle missing times as stated in the document. However it is NOT the "fault" of RETAIN and there a number of simple fixes that would allow it to handle missing TIMES. Seem's like a bad example that could have easily been coded to handle missing times.
> Sorry, I do not have time to cut out the code I have
> that was doing this as it is deep in a macro driven
> system with huge data files.
That's fine I have not interesting in seeing that sort of stuff. I would more interested in an example where RETAIN does not function as documented.
>
> And I say again, I do not disagree that your
> technique works for arranging variables. We just
> need to be aware that there are many beginners on
> this list who may not be as cognizant of some methods
> pitfalls. As in several cases I saw in taking the
> SAS exams, when asked what would happen if you did
> this, my first response was, "I would never do that"
>
> So, all I am doing is expressing the need for some
> caution.
To me the cautions come without proper explanation like that of SBB that I interpreted as sounding like "there is a problem with RETAIN and it must be avoided". Those are the kinds of statements that confuse beginners.