Djbateman, I tried to run the code you wrote to get an idea of this is something I'd want to run, and here are the following errors I'd received. 1 ;*';*";*/;quit;run; 2 OPTIONS PAGENO=MIN; 3 %LET _CLIENTTASKLABEL='DataForm'; 4 %LET _CLIENTPROJECTPATH=''; 5 %LET _CLIENTPROJECTNAME=''; 6 %LET _SASPROGRAMFILE='Z:\ResearchShare\Research Division SPSS Data 6 ! Files\Mason\DataForm.sas'; 7 8 ODS _ALL_ CLOSE; 9 OPTIONS DEV=ACTIVEX; NOTE: Procedures may not support all options or statements for all devices. For details, see the documentation for each procedure. 10 GOPTIONS XPIXELS=0 YPIXELS=0; 11 FILENAME EGSR TEMP; 12 ODS tagsets.sasreport12(ID=EGSR) FILE=EGSR STYLE=Analysis 12 ! STYLESHEET=(URL="file:///C:/Program%20Files/SAS/EnterpriseGuide/4.3/Styles/Analysis.css 12 ! ") NOGTITLE NOGFOOTNOTE GPATH=&sasworklocation ENCODING=UTF8 options(rolap="on"); NOTE: Writing TAGSETS.SASREPORT12(EGSR) Body file: EGSR 13 14 GOPTIONS ACCESSIBLE; 15 %macro windowmacro; /* Start the macro definition */ 16 17 %global a b; /* Create global macro variables for use outside of macro */ 18 19 /* Set up window macro */ 20 %window dataform color=white 21 #2 @33 'Customized Data Entry Form' attr=(highlight,underline) color=blue 22 #5 @19 'Enter the requested parameters in the table below:' attr=highlight color=blue 23 #6 @25 '(Use the TAB key to jump to next cell)' color=blue 24 25 #10 @3 'A:' @5 a 5 attr=underline required=yes 26 #12 @3 'B:' @5 b 5 attr=underline required=yes 27 28 #15 @33 'Press ENTER to continue' attr=highlight; 29 30 /* Run the window macro */ 31 %display dataform; 32 %mend windowmacro; /* Close the macro definition */ 33 34 /* call the macro */ 35 %windowmacro; ERROR: The MACRO windowing environment cannot be initialized due to a XU supervisor failure. ERROR: The macro WINDOWMACRO will stop executing. 36 37 /* create a dataset based on the macro variables created above */ 38 data addcalc; 39 a=&a.; _ 22 40 b=&b.; _ 22 2 The SAS System 10:05 Tuesday, February 28, 2012 ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant, a missing value, INPUT, PUT. 41 rslt=a+b; 42 run; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.ADDCALC may be incomplete. When this step was stopped there were 0 observations and 3 variables. WARNING: Data set WORK.ADDCALC was not replaced because this step was stopped. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 43 /* print the dataset */ 44 proc print data=addcalc; 45 run; NOTE: No observations in data set WORK.ADDCALC. NOTE: PROCEDURE PRINT used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 46 47 48 49 GOPTIONS NOACCESSIBLE; 50 %LET _CLIENTTASKLABEL=; 51 %LET _CLIENTPROJECTPATH=; 52 %LET _CLIENTPROJECTNAME=; 53 %LET _SASPROGRAMFILE=; 54 55 ;*';*";*/;quit;run; 56 ODS _ALL_ CLOSE; 57 58 59 QUIT; RUN; 60
... View more