LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 1997, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 9 Apr 1997 21:30:53 +0200
Reply-To:     Schlatter@online.realtech.de
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Schlatter@ONLINE.REALTECH.DE
Organization: -
Subject:      Re: An odd problem
Content-Type: text/plain; charset=us-ascii

> The situation is that I have 2 datasets, one with a name in full only > and one with an initial only, both with some missing values. When > the two are concatenated and the initial created for those having a > non-missing name the value of the initial is carried over to the > following record with a missing name as if there was a retain > statement.

Yes, SAS does a retain here. Solution:

data test1; LENGTH SINIT $ 1; input name $15.; cards; data test2; LENGTH NAME $ 15; input sinit $1.;

Jens

-- mailto:schlatter@online.realtech.de http://online.realtech.de/schlatter/


Back to: Top of message | Previous page | Main SAS-L page