NOTE: Copyright (c) 2002-2012 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software 9.4 (TS1M3) Licensed to HEALTH SERVICES ADVISORY GROUP INC, Site 70056059. NOTE: This session is executing on the X64_SRV12 platform. NOTE: Updated analytical products: SAS/STAT 14.1 SAS/ETS 14.1 NOTE: Additional host information: X64_SRV12 WIN 6.2.9200 Server NOTE: SAS initialization used: real time 1.21 seconds cpu time 1.06 seconds 1 /* Test of the MVAR macro statement in a GTL template. */ 2 3 4 %let path=c:\users\bconner\; 5 ods path(prepend) work.templat(update); 6 7 proc template; NOTE: Writing HTML Body file: sashtml.htm 8 define statgraph Pietable; 9 MVAR PCT1; 10 begingraph / designheight = 2.4in designwidth = 1.5in; 11 entrytitle ''; 12 layout overlay / opaque = false; 13 drawtext textattrs = (size = 7pt family = "Arial" color = Black) pct1 "%"; 14 endlayout; 15 endgraph; 16 end; NOTE: STATGRAPH 'Pietable' has been saved to: WORK.TEMPLAT 17 run; NOTE: PROCEDURE TEMPLATE used (Total process time): real time 0.32 seconds cpu time 0.28 seconds 18 19 ods escapechar='^'; 20 21 options nodate nonumber nobyline orientation=landscape mprint symbolgen; 22 ods html close ; 23 24 %macro genziptab(pct1); 25 26 ods pdf file="&path.ziptable1.pdf" notoc; 27 %put pct1=&pct1; 28 options obs=1; 29 proc sgrender data = sashelp.cars template = Pietable; 30 run; quit; 31 32 ods pdf close; 33 34 %mend genziptab; 35 36 37 data _null_; 38 call execute('%genziptab(53)'); 39 run; SYMBOLGEN: Macro variable PATH resolves to c:\users\bconner\ MPRINT(GENZIPTAB): ods pdf file="c:\users\bconner\ziptable1.pdf" notoc; SYMBOLGEN: Macro variable PCT1 resolves to 53 pct1=53 MPRINT(GENZIPTAB): options obs=1; MPRINT(GENZIPTAB): proc sgrender data = sashelp.cars template = Pietable; MPRINT(GENZIPTAB): run; MPRINT(GENZIPTAB): quit; MPRINT(GENZIPTAB): ods pdf close; NOTE: DATA statement used (Total process time): real time 0.04 seconds cpu time 0.04 seconds NOTE: CALL EXECUTE generated line. 1 + ods pdf file="c:\users\bconner\ziptable1.pdf" notoc; options obs=1; proc sgrender data = sashelp.cars template = Pietable; run; quit; ods pdf close; NOTE: Writing ODS PDF output to DISK destination "c:\users\bconner\ziptable1.pdf", printer "PDF". ERROR: Java virtual machine exception. java.lang.NullPointerException. ERROR: Java virtual machine exception. java.lang.NullPointerException. NOTE: The SAS System stopped processing this step because of errors. NOTE: There were 1 observations read from the data set SASHELP.CARS. NOTE: PROCEDURE SGRENDER used (Total process time): real time 0.43 seconds cpu time 0.07 seconds NOTE: ODS PDF printed no output. (This sometimes results from failing to place a RUN statement before the ODS PDF CLOSE statement.)