Newsgroups: bit.listserv.sas-l
Date:         Thu, 27 Aug 1992 10:13:15 ECT
Reply-To:     Lary Jones <LJONES@BINGVMB.BITNET>
Comments:     Resent-From: Lary Jones <LJONES@BINGVMB>
Comments:     Originally-From: FINGGRX@BINGVMB
From:         Lary Jones <LJONES@BINGVMB.BITNET>

Subj:  "Domain Error" in Proc Means
Pltfm: IBM MVS/ESA
Ver:   6.07
Name:  Lary Jones, Binghamton University
Addr:  LJones@BingVMB.Bitnet

A user has forwarded the following error. I will be checking his data
file, but am curious as to what would cause a domain error when
requesting the N, Mean, Min, and Max in PROC MEANS. Note that no
variable specification was provided. PROC MEANS listed statistics for
50 of the 67 variables (actually, the MAX value for the 50th variable
is missing). I don't know about the synchronization of printing from
SAS, so the 50th variable may not be the problem.

Any ideas?

Thanks,
Lary Jones
----------------------------Original message----------------------------
Lary what is a Domain error?  I run a program
and gave me CODE=1008 and a message on Domain error.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 The SAS System                       23:50 Wednesday, August 26, 1992

19         DATA ONE;
20            SET IN1.YEAR91B;
21
22           *  ===============================================================
23
24                some variables in this file:
25                CUSIP MC
26               FNPM FOPM FROE FSIZE FTOTA FSALES FDE FCUR FEMP FAS FLABOR
27               FROA FRD FVOL YEAR FEMP FTAX FPB
28
29               The file created with YEAR90-B does not contain industry avg
30              ===============================================================;
31
32                CUSIP1 = SUBSTR(CUSIP,1,6);
33

NOTE: The data set WORK.ONE has 35 observations and 67 variables.
NOTE: The DATA statement used 0.07 CPU seconds and 3725K.

34                PROC MEANS N MEAN MIN MAX;
35

ERROR: Domain error.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: The PROCEDURE MEANS printed page 1.
NOTE: The PROCEDURE MEANS used 0.03 CPU seconds and 3855K.

     ... stuff omitted ...

ERROR: Errors printed on page 2.
ERROR: Errors printed on page 2.
ERROR: Errors printed on page 2.

NOTE: The SAS session used 1.45 CPU seconds and 4874K.
NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
The SAS System
1

23:50 Wednesday, August 26, 1992

Variable   N          Mean       Minimum       Maximum
------------------------------------------------------
SIC       35       3025.71       2000.00       5100.00
YEAR      35    91.0000000    91.0000000    91.0000000
_TYPE_    35             0             0             0
_FREQ_    35    76.0000000     2.0000000   190.0000000
INPM      35     0.0259749    -0.0178447     0.0623740
IOPM      35     0.1096381     0.0566147     0.1689877
IROE      35     0.0659738    -0.1159538     0.1747821
IPB       35     3.1022318     1.3913087     6.2394749
ILABOR    29     0.2318182     0.0877276     0.3450548
IDE       35     0.7024972     0.2706734     3.2085682
ICUR      35     2.1841490     1.2837058     3.4514887
IROA      35    -0.0070729    -0.3713400     0.0628142
ISIZE     35     6.9456276     5.1687254     8.5703671
IVOL      35     0.5804091     0.2469410     0.8664954
IEMP      35     0.0071079     0.0025442     0.0146899
ITAX      35   0.000980751   0.000271344     0.0036828
IAS       35     0.0762157     0.0061781     0.2856374
IRD       33     0.0348015     0.0068906     0.0811329
ISIC      35       3025.71       2000.00       5100.00
IYEAR     35    91.0000000    91.0000000    91.0000000
TT        35     1.0000000     1.0000000     1.0000000
NN        35    40.0000000     2.0000000   103.0000000
DNUM      35       3056.91       2000.00       5150.00
CIC       35   115.6000000   100.0000000   302.0000000
REC       35     1.0000000     1.0000000     1.0000000
FIRSTYR   35    91.0000000    91.0000000    91.0000000
CA        31       2241.16   232.8809967      12401.00
CL        32       4978.14   157.3269958     102611.00
FTOTA     33      11113.53   326.7019043     168259.00
LTD       33       1910.55     7.1789999      22682.00
SALES     33       8422.19   324.0000000      59379.00
OIBD      33       1388.29     9.7920074      15887.00
DEP       33   382.6426558    11.3809996       2832.00
INT       33   373.3513873     5.2500000       7504.00
NI        33   403.4777124  -767.0000000       4435.00
FPRICE    35    48.7580340     3.1250000   166.5000000
SHARES    33   162.2268173     6.6129999   864.1218262
FTRADE    35    86.0806177     0.0198000   489.2558594
EMPLOY    33    44.2929350     3.2999992   338.0000000
INTANG    27   877.6958047             0       9809.00
LABOR     10       1388.54   435.6999512       3051.00
RD        25   232.7538208    13.3079996       1402.00
RENTAL    27   134.5259213     5.5999994       1108.00
CE        33       2912.16    62.2929840      21683.00
RENTAL2   35             0             0
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU