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 (March 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 21 Mar 2006 17:46:18 -0500
Reply-To:     Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject:      Re: inputting data

On Tue, 21 Mar 2006 12:44:26 -0800, rss <rslotpole@COMCAST.NET> wrote:

>How can I modify this code to accept input for two dates? This writes >out to the screen but I need the input control > >data _null_; > window start > #9 @26 'WELCOME TO THE SAS SYSTEM' > color=black > #12 @19 'Enter Start Date (mm/yy/dd) -->' > #12 @40 ' ' > #14 @26 'Enter End Date (mm/yy/dd)-->' > #18 @27 'Press ENTER to continue'; > display start; > stop; >run;

you simply should add variables to get the data. A example from V9 docu:

data proclib.deptxx; window hrdata menu=proclib.menus.entrdata #5 @10 'Employee Number' #8 @10 'Salary' #11 @10 'Employee Name' #5 @31 empno $4. #8 @31 salary 10. #11 @31 name $30. #19 @10 'Press ENTER to add the observation to the data set.';


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