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 2000, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 27 Apr 2000 19:35:28 -0400
Reply-To:     paula <icj808@USWEST.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         paula <icj808@USWEST.NET>
Subject:      length of variable assigned to substr function.

There is this rountine assignment

xyz = substr (uvwxyz, 1, 1); zyx = substr (uvwxyz, 2, 1); yxz =substr (uvwxyz, 3,1);

The original variable uvwxyz is of $6. Now it is so said (not by the reference manual) that the length of the three new variables to the left of the assignment are all determined by that of the original UVWxyz.

So should I use a Length statement to declare the length for them first? Is this generalizable to many other functions? such as Compress, or just a rule specific to this substr for a good reason?

P. D


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