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 (November 2004, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 30 Nov 2004 13:20:24 -0800
Reply-To:     "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Subject:      Re: Smallest SAS program?

Well, here are 6, 11, or 16 bytes. The 11 byte has the caveat that it must be first stored as a file named "t" in the default directory.

%inc*;

%inc"t";ru;

dat;a:goto a;ru;

I'm interested in Jim's 7 byte solution...

The

Paul Choate DDS Data Extraction (916) 654-2160

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Jim Groeneveld Sent: Tuesday, November 30, 2004 12:29 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Smallest SAS program?

Hi friends,

I think a 0-byte program file isn't actually a program, neither is a single space. And a single character macro call needs a macro definition somewhere. Even null statements like ';' are not really programs, because they do not tell SAS to do _something_ at all. So even my current suggestion, a single asterisk (without a semicolon and run in batch), which only starts a comment actually should not be regarded a _program_. Examples of programs doing at least something already have been given (like 'x;').

But I have liked the ideas on how to let SAS do (almost) nothing very much. However, it should have been Friday.......... ;-)

And now for next Friday, let's invent the smallest program, which actually does something special, keeping SAS busy for all the time, that is putting SAS in an endless, infinite loop, whether while causing errors or not!

Regards - Jim. -- Y. (Jim) Groeneveld, MSc., Biostatistician, Science Team Vitatron B.V., Meander 1051, 6825 MJ Arnhem P.O.Box 5227, 6802 EE Arnhem, the Netherlands Tel: +31/0 26 376 7365, Fax: +31/0 26 376 7305 Jim.Groeneveld_AT_Vitatron.com (replace _AT_ by AT sign) http://www.vitatron.com, http://home.hccnet.nl/jim.groeneveld

My computer multi-boots OS's, each of them adapting the DST twice a year.

[common disclaimer]


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