home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!stanford.edu!bcm!convex!darwin.sura.net!paladin.american.edu!auvm!NIHCU.BITNET!HIS
- Message-ID: <SAS-L%92111016104692@UGA.CC.UGA.EDU>
- Newsgroups: bit.listserv.sas-l
- Date: Tue, 10 Nov 1992 16:09:52 EST
- Reply-To: Howard Schreier <HIS@NIHCU.BITNET>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: Howard Schreier <HIS@NIHCU.BITNET>
- Subject: VIEWs & RENAMEs
- Lines: 30
-
- CONTENT: Question/Comment
- SUMMARY: Problem with DATA step VIEWs and RENAMEs
- REL/PLTF: 6.07 MVS
-
- I encounter some strange results involving the interaction
- of KEEPs and RENAMEs pertaining to a DATA step VIEW. Here I
- create a view which should return one observation and one
- variable:
-
- 12 data view (keep = newname) / view=view;
- 13 rename oldname = newname;
- 14 oldname = 1;
- NOTE: DATA STEP view saved on file WORK.VIEW.
- NOTE: The DATA statement used 0.01 CPU seconds and 3575K.
-
- But when I try to print it, nothing is there:
-
- 15 proc print;
- NOTE: No variables in data set WORK.VIEW.
-
- I get the expected results if I leave off the VIEW option or
- if I use a KEEP statement (KEEP OLDNAME;) instead of the
- KEEP data set option.
-
- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
- \ Howard Schreier, U.S. Dept. of Commerce, Washington /
- / MVS 5.18 & 6.07 \
- \ Voice: (202) 377-4180 BITNET: HIS@NIHCU /
- / Fax: (202) 377-4614 INTERNET: HIS@CU.NIH.GOV \
- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
-