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 (August 2011, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 17 Aug 2011 11:09:26 -0500
Reply-To:     "Data _null_;" <iebupdte@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Data _null_;" <iebupdte@GMAIL.COM>
Subject:      Re: how Pad SSNO with 0
Comments: To: Jamil M Ibrahim <jibrahim@umc.edu>
In-Reply-To:  <AFA9E34D9ECF3A4784A7AA3EE2FD3ED6148D8ED82C@EXMBX2.ntummc.umsmed.edu>
Content-Type: text/plain; charset=ISO-8859-1

read it with COMMA informat and display it with SSN format.

data SSN; input ssn:comma16.; ssn2 = ssn; format ssn ssn.; cards; 00990 452-34-9878 800-373-9978 ;;;; run; proc print; run;

On Wed, Aug 17, 2011 at 10:28 AM, Jamil M Ibrahim <jibrahim@umc.edu> wrote: > Why it does not read the ssn? I try to pad the leading spaces in SSno with zeros > DATA cars5; > 666 > 667 ***get rid of commas using dlm=',' and double quotes using dsd in infile statement; > SYMBOLGEN: Macro variable PATH resolves to C:\Admissions\admit03-04\ay03-04.csv > SYMBOLGEN: Some characters in the above value which were subject to macro quoting have been unquoted for printing. > 668 INFILE "&PATH" lrecl=400 missover pad dsd dlm=','; > 669 > 670 length FName MName LName EthnDesc $25. ssn $9. ; > 671 > 672 INPUT (Studno1 FName MName LName studno2 SSN Gender studno3 EthnicCd EthnDesc) ($) mcat > 673 M1Avg M2Avg M3Avg CumAvg ; > 674 > 675 ssn=input(ssn,z9.); Name = trim(left(lName)) || "? " || trim(left(fName)) ; > --- > 48 > ERROR 48-59: The informat Z was not found or could not be loaded. > > > Thank you. > > Dr. Jamil Ibrahim, Ph.D. > Scientist IV, Research Supervisor, Professor, SHRP > 2500 N State St. Jackson, MS 39216-4505 > Tel: (601) 984-1197 Fax: (601) 984-1205 > Email: jibrahim@umc.edu > > > > > > Individuals who have received this information in error or are not authorized to receive it must promptly return or dispose of the information and notify the sender. Those individuals are hereby notified that they are strictly prohibited from reviewing, forwarding, printing, copying, distributing or using this information in any way. >


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