BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi, I'm having trouble running the following code in 9.1.3 service pack 4 (SP4) plus hotfixes while others in my office running 9.1.3 SP1 have no problem running it. Can anyone tell me if this is a known problem with a solution? I have included code and error messages below, hope that helps.

Many Thanks,
Merry


ods layout start;
ODS REGION x=0 pct width =100pct y=10 pct height=70 pct;
title1 f=times h=1.5 'Chart 1.';
title2 f=times h=1.5 'For New York;
proc gplot data=report.table2;
plot recip_cnt*ext_date=rank_ord/haxis=axis1
vaxis=axis2
legend=legend2;
where YorN in (1,99);
format ext_date $extdatefmt.;
run;
ods layout end;
title ;


NOTE: No units specified for the HSIZE option. INCHES will be used.
NOTE: No units specified for the VSIZE option. INCHES will be used.

ods layout start;

NOTE: Writing HTML Body file: sashtml.htm
ERROR: Absolute layout is supported only for ODS PRINTER. Non-COLUMN/ROW LAYOUT requests will be ignored for other
destinations.

ODS REGION x=0 pct width =100pct y=10 pct height=70 pct;
title1 f=times h=1.5 'Chart 1.';
200 title2 f=times h=1.5 'For New York;
201 proc gplot data=report.table2;


NOTE: Writing HTML Body file: sashtml20.htm
NOTE: 73 RECORDS WRITTEN TO C:\DOCUME~1\username\LOCALS~1\Temp\SAS Temporary Files\_TD4672\gplot.gif
ERROR: Read Access Violation In Task [ GPLOT )
Exception occurred at (60DAFC91)
Task Traceback
Address Frame (DBGHELP API Version 4.0 rev 5)
60DAFC91 0563F574 sasmrk:mcn_main+0x5EC91
60D83652 0563F5A4 sasmrk:mcn_main+0x32652
674DE11C 0563F640 sasods:mcn_main+0x4D11C
67451223 0563F994 sasodst:mcn_main+0x223
674F6461 0563FA2C sasods:mcn_main+0x65461
67871D17 0563FABC sasxshel:mcn_main+0x30D17
67871395 0563FACC sasxshel:mcn_main+0x30395
674F6A1F 0563FBA8 sasods:mcn_main+0x65A1F
67451124 0563FBFC sasodst:mcn_main+0x124
676A1EC9 0563FC68 sasxany:mcn_main+0xEC9
67842617 0563FD00 sasxshel:mcn_main+0x1617
6785A2AA 0563FD84 sasxshel:mcn_main+0x192AA
6785AED3 0563FE1C sasxshel:mcn_main+0x19ED3
6787215F 0563FE80 sasxshel:mcn_main+0x3115F
57FBD5BF 0563FEBC sasgplot:mcn_main+0x2C5BF
57F9116D 0563FF88 sasgplot:mcn_main+0x16D
01272B72 0563FFA0 sashost:Main+0xBEE2
01276C90 0563FFB4 sashost:Main+0x10000
7C80B713 0563FFEC kernel32:GetModuleFileNameA+0x1B4

NOTE: PROCEDURE GPLOT used (Total process time):
real time 1.51 seconds
cpu time 0.29 seconds

NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 60 observations read from the data set

REPORT.TABLE2_KINGS.
WHERE YorN in (1, 99);


ERROR: Read Access Violation In Task [ Submit )
Exception occurred at (60DAFC91)
Task Traceback
Address Frame (DBGHELP API Version 4.0 rev 5)
60DAFC91 053BF484 sasmrk:mcn_main+0x5EC91
60D83652 053BF4B4 sasmrk:mcn_main+0x32652
674DE11C 053BF550 sasods:mcn_main+0x4D11C
67451223 053BF8A4 sasodst:mcn_main+0x223
674F6461 053BF93C sasods:mcn_main+0x65461
67871D17 053BF9CC sasxshel:mcn_main+0x30D17
67871395 053BF9DC sasxshel:mcn_main+0x30395
674F6A1F 053BFAB8 sasods:mcn_main+0x65A1F
67451124 053BFB0C sasodst:mcn_main+0x124
676A1EC9 053BFB78 sasxany:mcn_main+0xEC9
67842617 053BFC10 sasxshel:mcn_main+0x1617
6785A2AA 053BFC94 sasxshel:mcn_main+0x192AA
6787A9DD 053BFD84 sasxshel:mcn_main+0x399DD
67878174 053BFEE8 sasxshel:mcn_main+0x37174
67876CD2 053BFF58 sasxshel:mcn_main+0x35CD2
6787A522 053BFF88 sasxshel:mcn_main+0x39522
01272B72 053BFFA0 sashost:Main+0xBEE2
01276C90 053BFFB4 sashost:Main+0x10000
7C80B713 053BFFEC kernel32:GetModuleFileNameA+0x1B4

ERROR: Generic critical error.

NOTE: The SAS System stopped processing this step because of errors.
ods layout end;
title ;
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
This message:
[pre]
NOTE: Writing HTML Body file: sashtml.htm
ERROR: Absolute layout is supported only for ODS PRINTER. Non-COLUMN/ROW LAYOUT requests will be ignored for other
destinations.
[/pre]

indicates to me that possibly you are using SAS Enterprise Guide (which automatically tries to create an HTML file or you are using SAS Display Manager, but have automatic HTML output creation turned on. I do not see any ODS PDF statements in your code -- were you trying to use ODS LAYOUT with ODS HTML or ODS PDF????

To create HTML output with ODS, where the HTML output is divided into panels, you might want to investigate the ODS HTMLPANEL destination documentation here:
http://support.sas.com/rnd/base/ods/odsmarkup/htmlpanel.html

If you are using ODS LAYOUT with the PDF destination, ODS LAYOUT was experimental for PDF in SAS 9.1.3 and is still experimental (or "pre-production") as explained here:
http://support.sas.com/rnd/base/early-access/index.html

If you download the ODS LAYOUT code from the above web site, the chances are good that it will NOT work the same way in SAS 9.1.3 as it works in SAS 9.2.

You might find that working with Tech Support is your best resource for working with ODS LAYOUT at this point, especially to find out what you can and can't do in SAS 9.1.3 with ODS LAYOUT and ODS PDF..

cynthia
deleted_user
Not applicable
"........or you are using SAS Display Manager, but have automatic HTML output creation turned on."

You got it Cynthia, thank you so much. I had the automatic HTML output turned on under Options-Preferences-View and ODS PDF couldn't create a pdf from a file already in use. I turned the HTML feature off and the pdf was created as desired.

Sorry if I confused things by leaving out some coding. This program is complex with macros and the like and I was trying to provide only the relevant information to solving the problem.

Thanks again,
Merry

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 3449 views
  • 0 likes
  • 2 in conversation