Do Loop Shift Column

  • Follow


Hello all!  Have a quick programming question that I am hopeful someone
could help.  I have a messy data file in the following format:

Col1         Col2         Col3         Col4         Col5
James Spann 50 JumpSt oa,Calif 29856
DEF Company CO:Loiuse May PO Box 1450 la,nv 85696
Daniel Harris Susan Harris 14 Elm Street oak, GA 30010
Mary Hill  CEO         ABC Company 14Wood Road ri,VA 29863

What I need is to have Col1 - Col3 to contain all names wheter it's a
comapany name, person name, or title.  Col4 - Col5 contains only
addresses.  I was thinking of using the 'anydigit' function to identify
addresses but i can't figure out how to program it in a loop.

Thanks in advance,
Samuel
0
Reply arlando20002000 (35) 11/20/2009 2:48:59 PM

On Nov 20, 2:48=A0pm, arlando20002...@YAHOO.COM (Samuel Jackson) wrote:
> Hello all! =A0Have a quick programming question that I am hopeful someone
> could help. =A0I have a messy data file in the following format:
>
> Col1 =A0 =A0 =A0 =A0 Col2 =A0 =A0 =A0 =A0 Col3 =A0 =A0 =A0 =A0 Col4 =A0 =
=A0 =A0 =A0 Col5
> James Spann 50 JumpSt oa,Calif 29856
> DEF Company CO:Loiuse May PO Box 1450 la,nv 85696
> Daniel Harris Susan Harris 14 Elm Street oak, GA 30010
> Mary Hill =A0CEO =A0 =A0 =A0 =A0 ABC Company 14Wood Road ri,VA 29863
>
> What I need is to have Col1 - Col3 to contain all names wheter it's a
> comapany name, person name, or title. =A0Col4 - Col5 contains only
> addresses. =A0I was thinking of using the 'anydigit' function to identify
> addresses but i can't figure out how to program it in a loop.
>
> Thanks in advance,
> Samuel

I am not sure if you want to use SAS for this. In SAS you order
variables by using 'retain'.

Dirk
0
Reply Dirk 11/20/2009 4:40:54 PM


1 Replies
296 Views

(page loaded in 0.101 seconds)

Similiar Articles:













7/29/2012 11:39:41 AM


Reply: