home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!TEMPLEVM.BITNET!V1354G
- Message-ID: <SAS-L%92110714224116@OHSTVMA.ACS.OHIO-STATE.EDU>
- Newsgroups: bit.listserv.sas-l
- Date: Sat, 7 Nov 1992 14:06:56 EDT
- Reply-To: Ekeho <V1354G@TEMPLEVM.BITNET>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: Ekeho <V1354G@TEMPLEVM.BITNET>
- Subject: macro error message
- Lines: 137
-
- Hi
- I am trying to concatenate about 100 data sets. Therefore I am testing
- macro program. In the last part of sas log I generate data set names.
- When I don't use macro, it works fine. Instead of "set" I use "proc
- append" in another program. It is ok. There is error messages in the
- screen. It says "invalid device". May be %cms makes a trouble.
- Thank you in advance.
- ================================================================
-
-
-
-
-
-
- 11 The SAS System
-
- NOTE: Copyright(c) 1989 by SAS Institute Inc., Cary, NC USA.
- NOTE: SAS (r) Proprietary Software Release 6.06.01
- Licensed to TEMPLE UNIVERSITY COMPUTER ACTIVITY, Site 0003844001.
-
-
-
- Welcome to the new SAS System, Release 6.06.
-
- This message is seen by users when the NEWS option is specified.
- You can replace this message with your own by editing the NEWS file.
-
- Changes and enhancements available in SAS Release 6.06 are documented
- in the online Host Help.
-
- 1 %MACRO MANI(R);
- 2 %DO I=1 %TO &R;
- 3 %CMS FI OUT&I OUT&I DATA A;
- 4 DATA ONE;
- 5 INFILE OUT&I FIRSTOBS=2 OBS=181;
- 6 INPUT DATE STRTN MKRTN;
- 7
- 8 PROC REG OUTEST=EST;
- 9 MODEL STRTN=MKRTN /R NOPRINT;
- 10 * OUTPUT OUT=OT&I PREDICTED=PV;
- 11 TITLE 'ESTIMATES OF PARAMETERS';
- 12 *PROC PRINT DATA=EST&I;
- 13 DATA TWO (KEEP=STRTN1 STRTNH);
- 14 INFILE OUT&I FIRSTOBS=182 OBS=362;
- 15 INPUT DATE STRTN1 MKRTN1;
- 16 * PUT STRTN1= MKRTN1=;
- 17 OBSNUM=1;
- 18 SET EST POINT=OBSNUM;
- 19 STRTNH=INTERCEP+MKRTN*MKRTN1;
- 20 * PUT STRTN1= MKRTN1= STRTNH= INTERCEP= MKRTN=;
- 21 OUTPUT;
- 22 *PROC PRINT DATA=TWO;
- 23 DATA NEW&I (KEEP=DIFF);
- 24 SET TWO;
- 25 DIFF=STRTN1-STRTNH;
- 26 OUTPUT;
- 27 RUN;
- 28 *PROC PRINT DATA=NEW&I;
- 29 RUN;
- 30 PROC TRANSPOSE DATA=NEW&I OUT=NEW&I;
- 31 RUN;
- 32 *PROC PRINT DATA=NEW&I;
- 33 RUN;
- 34 *PROC CONTENTS DATA=NEW&I;
- 35 %END;
- 36 %MEND;
- 37 %MACRO NAMELIST(R);
- 38 SET
- 39 %DO I=1 %TO &R;
- 40 NEW&I
- 41 %CMS ERASE NEW&I WORK A;
- 42 %END;
- 43 %MEND ;
- 44 %LET R=3;
- 12 The SAS System
-
- 45 %MANI(&R);
- WARNING: Execution of host command received a return code of 24.
-
- **** I deleted some sas log ****
-
- NOTE: The infile OUT3 is:
- Filename=OUT3 DATA A1,
- Lrecl=32,Recfm=V
-
- NOTE: 181 records were read from the infile OUT3.
- The minimum record length was 32.
- The maximum record length was 32.
- NOTE: The data set WORK.TWO has 181 observations and 2 variables.
-
-
- NOTE: The data set WORK.NEW3 has 181 observations and 1 variables.
-
-
- NOTE: The data set WORK.NEW3 has 1 observations and 182 variables.
-
- 46 DATA NEW;
- 47 %NAMELIST(&R);
- ERROR: File WORK.NEW1.DATA does not exist.
- +ERROR: File WORK.NEW1.DATA does not exist.
- +ERROR: File WORK.NEW1.DATA does not exist.
- ERROR: File WORK.NEW2.DATA does not exist.
- +ERROR: File WORK.NEW2.DATA does not exist.
- +ERROR: File WORK.NEW2.DATA does not exist.
- ERROR: File WORK.NEW3.DATA does not exist.
- +ERROR: File WORK.NEW3.DATA does not exist.
- +ERROR: File WORK.NEW3.DATA does not exist.
-
- NOTE: The SAS System stopped processing this step because of errors.
- NOTE: SAS set option OBS=0 and will continue to check statements. This may caus
- WARNING: The data set WORK.NEW may be incomplete. When this step was stopped t
-
-
- 48 PROC CONTENTS DATA=NEW;
- NOTE: Statements not processed because of errors noted above.
-
- ERROR: Errors printed on page 3.
- +ERROR: Errors printed on page 3.
- +ERROR: Errors printed on page 3.
-
- NOTE: SAS Institute Inc., SAS Circle, PO Box 8000, Cary, NC 27512-8000
-
-
-
-
- ===============================================================
-
- Ekeho Oh
-
- Internet: V1354G@VM.TEMPLE.EDU Home: 223 W. Mentor St.
- Bitnet: V1354G@TEMPLEVM Philadelhpia, PA 19120
- Dep't of Statistics 215-329-6345
- Temple University
- Philadelphia, PA 19122
- USA
-
- ===============================================================
-