Date: Sat, 5 Apr 1997 18:43:54 +0000
Reply-To: John Whittington <johnw@MAG-NET.CO.UK>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: John Whittington <johnw@MAG-NET.CO.UK>
Subject: Re: Help appreciated
Content-Type: text/plain; charset="us-ascii"
On Fri, 4 Apr 1997, Chun Huang <chun@MANA.MEDSURF.COM> sugegsted the code:
>DATA TRI;
>INPUT #1 V1-V6 #2 V7-V11 #3 V12-V15 #4 V16-V18 #5 V19;
>CARDS;
>1 2 3 77 88 89
>3 4 5 6 8
>10 33 66 8
>7 9 10
>3.5
>3 6 7 8 89 99
>10 2 7 9 10
>5 7 10 9
>5 9 12
>10.1
>;
>RUN;
That certainly works, but I am lazy when it comes to typing and would
normally prefer to use the simpler code:
DATA TRI;
INPUT V1-v19 @@;
CARDS;
etc ....
Similarly, the suggested code:
>DATA RACT;
>INPUT X1 / X2/ X3 / X4 / X5;
>CARDS;
> ... etc.
could generally be written slightly more simply as:
DATA RACT;
INPUT X1-X5;
CARDS;
etc. ....
The above assumes, of course, that the input data is in the form specified -
but if its structure did vary from this expected pattern, then any code
would be at risk of failing.
Regards,
John
-----------------------------------------------------------
Dr John Whittington, Voice: +44 1296 730225
Mediscience Services Fax: +44 1296 738893
Twyford Manor, Twyford, E-mail: johnw@mag-net.co.uk
Buckingham MK18 4EL, UK CompuServe: 100517,3677
-----------------------------------------------------------