Date: Wed, 28 Apr 1999 08:30:54 -0400
Reply-To: Bernard Tremblay <bernard@CAPITALE.QC.CA>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Bernard Tremblay <bernard@CAPITALE.QC.CA>
Subject: Re: PROC REPORT error
Hi James,
You may want to use the ORDER status instead of GROUP on the
SUBNO variable. This would make a break on the report for each value
of the SUBNO variable. But if you want to use the GROUP to calculate
a statistic (wich is the intended use) you cannot have DISPLAY variable
since you're going to show statistics on the line (SUM,MEAN,N,...);
you need numeric variables with the ANALYSIS or COMPUTED status ...
See PROC REPORT guide for details...
Regards,
Bernard Tremblay
\\\|///
\\ - - //
( @ @ )
+-----oOOo-(_)-oOOo-------+--------------------------------------+
| Bernard Tremblay | |
| La Capitale | Tel: (418) 646-2401 |
| | Fax: (418) 646-5960 |
| | Int: Bernard.Tremblay@capitale.qc.ca |
+-------------------------+--------------------------------------+
| Imaginasys enr | Res: (418) 658-1411 |
| | Int: bertrem@quebectel.com |
+--------------Oooo-------+--------------------------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>Date: Tue, 27 Apr 1999 13:55:00 PDT
>>>From: James Zhou <jameszhou@HOTMAIL.COM>
>>>Subject: PROC REPORT error
>>>
>>>Hi All,
>>>
>>>I run PROC REPORT and got the following error message. Could you
>>>tell me what is the problem?
>>>
>>>Thanks a lot in advance!
>>>
>>>James
>>>
>>>
>>>
>>>52
>>>53 PROC REPORT DATA=TERM SPLIT='*' NOWINDOWS HEADSKIP
>>>HEADLINE SPACING=5 MISSING;
>>>54
>>>55 COL SUBNO VISITDT WID WDDT WDRECD WDRETX INVSIGDT ;
>>>56
>>>57 DEFINE SUBNO / GROUP 'Subject*Number' WIDTH= 7
>>>CENTER ;
>>>58 DEFINE VISITDT / DISPLAY 'Date of*Last Visit' WIDTH=10
>>>CENTER format=date9. ;
>>>59 DEFINE WID / DISPLAY 'Did Subject*Withdraw?'
>>>WIDTH=12 CENTER FORMAT=$jz_yn. ;
>>>60 DEFINE WDDT / DISPLAY 'Date of*Withdrawal' WIDTH=10
>>>CENTER ;
>>>61 DEFINE WDRECD / DISPLAY 'Reason for*Withdrawal'
>>>WIDTH=15 LEFT FORMAT=$WDRES. FLOW ;
>>>62 DEFINE WDRETX / DISPLAY 'Reason for*Withdrawal - Other'
>>>WIDTH=22 LEFT FLOW ;
>>>63 DEFINE INVSIGDT / DISPLAY 'Investigator*Signature*Date'
>>>WIDTH=12 CENTER format=date9. ;
>>>64 BREAK AFTER SUBNO / SKIP ;
>>>65
>>>66 RUN ;
>>>
>>>NOTE: Groups are not created because the usage of VISITDT is DISPLAY.
>>>ERROR: Segmentation Violation captured in task 'REPORT'.
>>>ERROR: Segmentation Violation captured in task 'REPORT'.
>>>ERROR: Segmentation Violation captured in task 'REPORT'.
>>>ERROR: Generic critical error.
>>>ERROR: Generic critical error.
>>>ERROR: Generic critical error.
>>>NOTE: The SAS System stopped processing this step because of errors.
>>>NOTE: PROCEDURE REPORT used:
>>> real time 0.06 seconds
>>> cpu time 0.05 seconds
>>>
>>>
>>>_______________________________________________________________
>>>Get Free Email and Do More On The Web. Visit http://www.msn.com
|