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:         Mon, 29 Nov 2004 14:04:57 -0800
Reply-To:     Jeff Voeller <Jeff.Voeller@MCI.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jeff Voeller <Jeff.Voeller@MCI.COM>
Subject:      Re: Smallest SAS program?
In-Reply-To:  <>
Content-type: text/plain; charset=us-ascii

You *can* get away with a zero-byte SAS program in z/OS:

//SYSIN DD * followed by nothing at all results in:

NOTE: The initialization phase used 0.11 CPU seconds and 7278K. NOTE: The SAS session used 0.11 CPU seconds and 7278K. NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Richard A. DeVenezia Sent: Sunday, November 28, 2004 8:05 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Smallest SAS program?

Bruce Erlichman wrote: > dat; > ru;

Here are some short SAS programs - each is one line and ends sas

dm'bye; dm'by; dm'by dm'bye endsas; endsa;

Do any of these one liners count ? ; *; %*; %put; run; ru; (generates a warning)

This might be the shortest program that creates an external file --- dat; fil'x'; ru; ---

An interesting non-program that locks up sas is ...\sas.exe -initcmd 'bye'

If it didn't lockup, one might claim the shortest sas program is zero bytes long.

In batch mode, the shortest is zero. Presume is a file with no content. ...\sas.exe -sysin

-- Richard A. DeVenezia

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