Date: Sun, 20 Oct 1996 19:45:36 -0400
Reply-To: "Les R. Becker" <lrb2@CRIS.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "Les R. Becker" <lrb2@CRIS.COM>
Organization: Maryland Division of Injury and Disability Prevention
Subject: This Format and Length Change Shouldn't Be Difficult
I have spent way too much time trying to reformat a variable in a SAS
dataset. Perhaps a generous soul will lend a hand. I have a variable
with a length of 7 and a format of $7. in a sas data set on a vax
system. I merely wish to alter the length to 8 and format to $8. so
that I can insert a digit into this character variable (it's an ID
number). I have tried various combination of length and format
statements and even tried modify in proc datasets. I seem to get
various messages that the length has already been set, or the code I
write is ineffective and the last digit of the character variable is
truncated. I'm certain that there is an simple solution to this prpb;em
that I have overlooked. BTW, when I merely try to set my old variable
(length of 7) equal to the new variable (length of 8), the character
string is truncated.
TIA for your suggestions. Feel free to respond directly to me; I'll
repost a summary of the responses. Also, is this is answered in a FAQ,
I'd appreciate a reference to where and access instructions.
Les
<***************************************************************************>
Les R. Becker, MA, NREMT-P
Evaluation Manager
Division of Injury and Disability Prevention
Maryland Department of Health and Mental Hygiene
201 W. Preston Street
Baltimore MD 21201
lrb2@cris.com Voice: (410) 767-5780 FAX: (410) 333-7279
and
Paramedic II
Bureau of Advanced Emergency Medical Services
Prince George's County Fire Department, Maryland
******************************************************************************
* *
* FOR THE VIEWS EXPRESSED HERE THERE IS ONLY MYSELF TO BLAME *
* *
******************************************************************************