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 (May 2003, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 2 May 2003 04:54:48 -0700
Reply-To:     Rune Runnestoe <rune@FASTLANE.NO>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Rune Runnestoe <rune@FASTLANE.NO>
Organization: http://groups.google.com/
Subject:      Formatting the output
Content-Type: text/plain; charset=ISO-8859-1

Hello,

The columns Year and SeqNo are both numeric. When I run the following code...

proc sql; select SeqNo, Year from Mytable order by Year, SeqNo;

...the output shows like this:

SeqNo Year --------------- 232 2003 233 2003

But I want it to look like this:

Missing Lopenr --------------- 000232/2003 000233/2003

How do I code that ? How do I fill up with leading zeros in the SeqNo ?

Regards Rune Runnestoe


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