| Date: | Thu, 28 Aug 2003 11:37:09 +0000 |
| Reply-To: | Arthur Ellen <arte@PANIX.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Arthur Ellen <arte@PANIX.COM> |
| Organization: | PANIX Public Access Internet and UNIX, NYC |
| Subject: | input specific lines with overlapping input? |
|---|
/* reading specific lines with overlapping input */
/* is there a better way to go to just line 2 and read it or a portion
of it and then go to line 4 and read an overlapping piece of it? */
data a(keep=achar1-achar7) b(keep=echar1-echar4);
input (achar1-achar7) ($char1.) @6 (echar1-echar4)($char1.);
if _n_=2 then output a;
if _n_>4 then output b;
cards;
aa
bbbbbbb
cccc
dddd
eeeeeeeee
eeeeeeeee
eeeeeeeee
;
proc print data=a;
proc print data=b;
run;
|