1                                          The SAS System          08:35 Thursday, February 16, 2006

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           0.14 seconds
      cpu time            0.13 seconds
      

NOTE: AUTOEXEC processing beginning; file is C:\temp\cdiscbld\testing\saspgm\autoexec.sas.

NOTE: Libref _CDISC_ was successfully assigned as follows: 
      Engine:        V9 
      Physical Name: d:\My Projects\SAS\CDISCBUILDER\sashelp

NOTE: AUTOEXEC processing completed.

1          /*------------------------------------------------------------*
2          * program:     ordervar4.sas                                  *
3          * Description: Test condition where the variable domain and   *
4          *              parameter rdomain are missing.                 *
5          *                                                             *
6          * By:          Meta-Xceed, Inc.                               *
7          *              Minh Nguyen, 09/15/2005                        *
8          *-------------------------------------------------------------*/
9          libname data '..\data\ordervar';
NOTE: Libref DATA was successfully assigned as follows: 
      Engine:        V9 
      Physical Name: C:\temp\cdiscbld\testing\data\ordervar
10         
11         data data.shoes;
12         set sashelp.shoes;
13         run;

NOTE: There were 395 observations read from the data set SASHELP.SHOES.
NOTE: The data set DATA.SHOES has 395 observations and 7 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
      

14         
15         
16         *** Test of variable domain and parameter rdomain are missing ***;
17         %ordervar(data=data.shoes, rdomain=, key1=product, basecode=);

  
WARNING: [ordervar] Both variable and parameter DOMAIN are missing. 
  
18         options nofmterr;
19         data data.shoes(label='No label');
2                                          The SAS System          08:35 Thursday, February 16, 2006

20            *** Order the position through a retain statement ***;
21            *** Retain the key variables ***;
22            retain
23                product
24            ;
25            *** Retain the non-key variables ***;
26            retain
27                region
28                subsidiary
29                stores
30                sales
31                inventory
32                returns
33                domain
34            ;
35                attrib domain length=$30 label='Domain Abbreviation';
36                domain='';
37            set data.shoes;
38         run;

NOTE: There were 395 observations read from the data set DATA.SHOES.
NOTE: The data set DATA.SHOES has 395 observations and 8 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

39         *** Sort the data set according to the keys and original sort order ***;
40         proc sort data = data.shoes;
41            by product;
42         run;

NOTE: There were 395 observations read from the data set DATA.SHOES.
NOTE: The data set DATA.SHOES has 395 observations and 8 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
      

43         ods listing close;
44         ods html file = 'ord_report.html';
NOTE: Writing HTML Body file: ord_report.html
45         
46         *** Generate the final report ***;
47         proc contents data = data.shoes;
48            title 'shoes dataset';
49         run;

NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.09 seconds
      cpu time            0.03 seconds
      

50         
3                                          The SAS System          08:35 Thursday, February 16, 2006

51         ods html close;
52         ods listing;
53         
54         
55         

NOTE: [ordervar] has sucessfully create dataset data.shoes 
NOTE: PROCEDURE DISPLAY used (Total process time):
      real time           0.60 seconds
      cpu time            0.43 seconds
      

56         

NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
NOTE: The SAS System used:
      real time           0.79 seconds
      cpu time            0.57 seconds
      
