1                                          The SAS System           16:43 Wednesday, August 17, 2005

NOTE: Copyright (c) 2002-2003 by SAS Institute Inc., Cary, NC, USA. 
NOTE: SAS (r) 9.1 (TS1M3)
      Licensed to META-XCEED INC, Site 0035729001.
NOTE: This session is executing on the XP_HOME  platform.



NOTE: SAS initialization used:
      real time           1.93 seconds
      cpu time            0.79 seconds
      

NOTE: AUTOEXEC processing beginning; file is C:\WorkRoom\comment\Test 
      Macro\testing\saspgm\autoexec.sas.

NOTE: Libref CDISCBLD was successfully assigned as follows: 
      Engine:        V9 
      Physical Name: C:\WorkRoom\comment\Test Macro\testing\saspgm

NOTE: AUTOEXEC processing completed.

1          /*--------------------------------------------------------------------------------	*
2          * program:     comment3.sas                                   					 	*
3          * Description: Verify that the specified variables for comvar, datevar usubjid		*	
4          				 and idvar exist in dataset if specified.									*
5          * By:          Meta-Xceed, Nam Phuong, 8/17/2005										*
6          *---------------------------------------------------------------------------------	*/
7          libname mylib ".";
NOTE: Libname MYLIB refers to the same physical library as CDISCBLD.
NOTE: Libref MYLIB was successfully assigned as follows: 
      Engine:        V9 
      Physical Name: C:\WorkRoom\comment\Test Macro\testing\saspgm
8          
9          %comment (data =mylib.ae,
10                  comvar=com,
11           		  datevar=	rslvdt2,
12                  rdomain=ae,
13                  studyid=1232,
14                  usubjid = ptid,
15                  idvar = rslvdt2,
16                  output = mylib.co
17         );

  
ERROR: [comment] COM variable does not exist in the source dataset. 
  
NOTE: PROCEDURE DISPLAY used (Total process time):
      real time           21.88 seconds
      cpu time            0.28 seconds
      

18         
19         %comment (data =mylib.ae,
20                  comvar=comment,
2                                          The SAS System           16:43 Wednesday, August 17, 2005

21           		  datevar=date,
22                  rdomain=ae,
23                  studyid=1232,
24                  usubjid = ptid,
25                  idvar = rslvdt2,
26                  output = mylib.co
27         );

  
ERROR: [comment] has an invalid DATEVAR variable: date specified. 
  
NOTE: PROCEDURE DISPLAY used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

28         
29         %comment (data =mylib.ae,
30                  comvar=comment,
31           		  datevar=	rslvdt2,
32                  rdomain=ae,
33                  studyid= 1232,
34                  usubjid = usubid,
35                  idvar = idmetax,
36                  output = mylib.co
37         );

  
ERROR: [comment] has an invalid USUBJID specified. 
  
NOTE: PROCEDURE DISPLAY used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

38         
39         %comment (data =mylib.ae,
40                  comvar=comment,
41           		  datevar=	rslvdt2,
42                  rdomain=ae,
43                  studyid= 1232,
44                  usubjid = ptid,
45                  idvar = idmetax,
46                  output = mylib.co
47         );

  
ERROR: [comment] has an invalid IDVAR specified. 
  
NOTE: PROCEDURE DISPLAY used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

3                                          The SAS System           16:43 Wednesday, August 17, 2005


NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
NOTE: The SAS System used:
      real time           24.01 seconds
      cpu time            1.09 seconds
      
