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 (March 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 21 Mar 2006 14:53:59 -0800
Reply-To:     Richie <gsingh24@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Richie <gsingh24@GMAIL.COM>
Organization: http://groups.google.com
Subject:      Read a variable from Right to Left
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset="iso-8859-1"

Hi All,

I want help to substring a variable from right to left, for eg: I have a SAS data set which has a variable Address like.

Address

114, Mills Rd, Apt 202 345 Morris Drive, Apt 345 Chestnut Avenue Apt # 987

Is there a way I can create a variable say Type like

Type

Apt202 Apt345 pt#987

Thanks, Richie


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