ODS PDF causes an issue when contents will be generated

Reply
N/A
Posts: 1

ODS PDF causes an issue when contents will be generated

Hi,

Could you anyone tell me what causes that when I want to create a PDF with contents then the SGPLOT procedure with BY statment will generate empty charts. While SGPLOT charts without BY statment are OK.

The code below generates bad charts when contents=yes option is added to the ods pdf statement. (The result was enclosed.)

ods pdf file='c:\tmp\a.pdf' contents=yes;

  title " Realized vs. estimated CF";

  title2 "Sample: 2011-12-12";

  proc sgplot data=a.cfe4_train;

  by pool;

  xaxis label='Observation date';

  yaxis label='Number of defaults' tickvalueformat=commax22.;

  y2axis label='CF (%)' tickvalueformat=percentn10.;

  vbar obs_date /  response=obs_balance legendlabel='Number of defaults' ;

  vline obs_date / response=obs_limit y2axis legendlabel='Realized CF';

  run;

  title;

  title2;

  ods pdf close;

  ODS GRAPHICS OFF;

Without contents=yes it works perfectly.,

Thank you for your help in advance!

Best regards,

Gabor

Ask a Question
Discussion stats
  • 0 replies
  • 154 views
  • 0 likes
  • 1 in conversation