home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / bit / listserv / sasl / 4961 < prev    next >
Encoding:
Text File  |  1992-11-08  |  4.7 KB  |  149 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!TEMPLEVM.BITNET!V1354G
  3. Message-ID: <SAS-L%92110714224116@OHSTVMA.ACS.OHIO-STATE.EDU>
  4. Newsgroups: bit.listserv.sas-l
  5. Date:         Sat, 7 Nov 1992 14:06:56 EDT
  6. Reply-To:     Ekeho <V1354G@TEMPLEVM.BITNET>
  7. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  8. From:         Ekeho <V1354G@TEMPLEVM.BITNET>
  9. Subject:      macro error message
  10. Lines: 137
  11.  
  12. Hi
  13. I am trying to concatenate about 100 data sets. Therefore I am testing
  14. macro program. In the last part of sas log I generate data set names.
  15. When I don't use macro, it works fine. Instead of "set" I use "proc
  16. append" in another program. It is ok. There is  error messages in the
  17. screen.  It says "invalid device". May be %cms makes a trouble.
  18. Thank you in advance.
  19. ================================================================
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26. 11                                                          The SAS System
  27.  
  28.  NOTE: Copyright(c) 1989 by SAS Institute Inc., Cary, NC USA.
  29.  NOTE: SAS (r) Proprietary Software Release 6.06.01
  30.        Licensed to TEMPLE UNIVERSITY COMPUTER ACTIVITY, Site 0003844001.
  31.  
  32.  
  33.  
  34.   Welcome to the new SAS System, Release 6.06.
  35.  
  36.   This message is seen by users when the NEWS option is specified.
  37.   You can replace this message with your own by editing the NEWS file.
  38.  
  39.   Changes and enhancements available in SAS Release 6.06 are documented
  40.   in the online Host Help.
  41.  
  42.  1          %MACRO MANI(R);
  43.  2          %DO I=1 %TO &R;
  44.  3          %CMS FI OUT&I OUT&I DATA A;
  45.  4          DATA ONE;
  46.  5             INFILE OUT&I  FIRSTOBS=2 OBS=181;
  47.  6             INPUT DATE STRTN MKRTN;
  48.  7
  49.  8          PROC REG OUTEST=EST;
  50.  9              MODEL STRTN=MKRTN /R NOPRINT;
  51.  10         *   OUTPUT OUT=OT&I PREDICTED=PV;
  52.  11         TITLE 'ESTIMATES OF PARAMETERS';
  53.  12         *PROC PRINT DATA=EST&I;
  54.  13         DATA TWO (KEEP=STRTN1 STRTNH);
  55.  14           INFILE OUT&I  FIRSTOBS=182 OBS=362;
  56.  15            INPUT DATE STRTN1 MKRTN1;
  57.  16         *  PUT STRTN1= MKRTN1=;
  58.  17            OBSNUM=1;
  59.  18            SET EST POINT=OBSNUM;
  60.  19            STRTNH=INTERCEP+MKRTN*MKRTN1;
  61.  20         *  PUT STRTN1= MKRTN1= STRTNH= INTERCEP= MKRTN=;
  62.  21            OUTPUT;
  63.  22         *PROC PRINT DATA=TWO;
  64.  23         DATA NEW&I (KEEP=DIFF);
  65.  24             SET TWO;
  66.  25             DIFF=STRTN1-STRTNH;
  67.  26             OUTPUT;
  68.  27         RUN;
  69.  28         *PROC PRINT DATA=NEW&I;
  70.  29         RUN;
  71.  30         PROC TRANSPOSE DATA=NEW&I OUT=NEW&I;
  72.  31         RUN;
  73.  32         *PROC PRINT DATA=NEW&I;
  74.  33         RUN;
  75.  34         *PROC CONTENTS DATA=NEW&I;
  76.  35         %END;
  77.  36         %MEND;
  78.  37         %MACRO NAMELIST(R);
  79.  38             SET
  80.  39             %DO I=1 %TO &R;
  81.  40              NEW&I
  82.  41           %CMS ERASE NEW&I WORK A;
  83.  42            %END;
  84.  43         %MEND ;
  85.  44         %LET R=3;
  86. 12                                                          The SAS System
  87.  
  88.  45         %MANI(&R);
  89.  WARNING: Execution of host command received a return code of 24.
  90.  
  91.  **** I deleted some sas log ****
  92.  
  93.  NOTE: The infile OUT3 is:
  94.        Filename=OUT3     DATA     A1,
  95.        Lrecl=32,Recfm=V
  96.  
  97.  NOTE: 181 records were read from the infile OUT3.
  98.        The minimum record length was 32.
  99.        The maximum record length was 32.
  100.  NOTE: The data set WORK.TWO has 181 observations and 2 variables.
  101.  
  102.  
  103.  NOTE: The data set WORK.NEW3 has 181 observations and 1 variables.
  104.  
  105.  
  106.  NOTE: The data set WORK.NEW3 has 1 observations and 182 variables.
  107.  
  108.  46         DATA NEW;
  109.  47           %NAMELIST(&R);
  110.  ERROR: File WORK.NEW1.DATA does not exist.
  111. +ERROR: File WORK.NEW1.DATA does not exist.
  112. +ERROR: File WORK.NEW1.DATA does not exist.
  113.  ERROR: File WORK.NEW2.DATA does not exist.
  114. +ERROR: File WORK.NEW2.DATA does not exist.
  115. +ERROR: File WORK.NEW2.DATA does not exist.
  116.  ERROR: File WORK.NEW3.DATA does not exist.
  117. +ERROR: File WORK.NEW3.DATA does not exist.
  118. +ERROR: File WORK.NEW3.DATA does not exist.
  119.  
  120.  NOTE: The SAS System stopped processing this step because of errors.
  121.  NOTE: SAS set option OBS=0 and will continue to check statements. This may caus
  122.  WARNING: The data set WORK.NEW may be incomplete.  When this step was stopped t
  123.  
  124.  
  125.  48         PROC CONTENTS DATA=NEW;
  126.  NOTE: Statements not processed because of errors noted above.
  127.  
  128.  ERROR: Errors printed on page 3.
  129. +ERROR: Errors printed on page 3.
  130. +ERROR: Errors printed on page 3.
  131.  
  132.  NOTE: SAS Institute Inc., SAS Circle, PO Box 8000, Cary, NC 27512-8000
  133.  
  134.  
  135.  
  136.  
  137. ===============================================================
  138.  
  139. Ekeho Oh
  140.  
  141. Internet: V1354G@VM.TEMPLE.EDU     Home: 223 W. Mentor St.
  142. Bitnet:   V1354G@TEMPLEVM                Philadelhpia, PA 19120
  143. Dep't of Statistics                      215-329-6345
  144. Temple University
  145. Philadelphia, PA 19122
  146. USA
  147.  
  148. ===============================================================
  149.