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.';