02-13-2017 01:51 PM
I have code as following, but second report TPL_SUMMARY_0500, nt the landscaping any more, even I set up the Landscspe as the option, therefor the out put looks very in consisitance.
options orientation=landscape center;
ods pdf file ="/export/TPL_Membership/Summary/test.pdf";
ods listing close;
%MACRO ABC (VAR);
PROC REPORT DATA=WORK.TPL_SUMMARY_&VAR;
COLUMN MONTH Category OVERALL_MEMBERSHIP TPL MEDICARE MEDICARE_SUPPLEMENTAL MEDICARE_A MEDICARE_B MEDICARE_AB MEDICARE_ADVANTAGE COMMERCIAL VISION DENTAL LIMITED_BENEFITS Casualty PHARMACY;
title " LOB &VAR TPL Membership" ;
footnote" Run at &sDay &stime" ;
02-13-2017 03:49 PM
Without data it is hard to test what may be causing the change.
Try running this:
ods pdf file ="/export/TPL_Membership/Summary/test.pdf"; %ABC (VAR=0100); %ABC (VAR=0100); ods pdf close;
And see if both pages look the same. If so then there is something subtle in the data that likely means one or more of the columns wants just a little more room at which point the PDF generator splits off several columns to make a "nicer" report.
I know that generally if I want tables based on separate data sets to appear the same that I usually have to go into setting style overrides for each column to the width stays the same for each report call.
You might look at the Proc Contents results for your data sets and see if the lengths of the character variables are the same.
02-13-2017 10:01 PM
Maybe you need to reset it before applying it. options orientation=landscape center; ods pdf file ="/export/TPL_Membership/Summary/test.pdf"; %ABC (VAR=0100) ods pdf; options orientation=landscape center; %ABC (VAR=0500) ods pdf close;
02-14-2017 01:21 PM
thank you for reply to me. still dose not working ..
##- Please type your reply above this line. Simple formatting, no
Which are you responding to? There is a button above the text entry area that says "Quote" . If you click on that the text of the post you respond to is brought into the message area so it is clear which which post you are responding to.