SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
JHE
Obsidian | Level 7 JHE
Obsidian | Level 7

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;
DEFINE MONTH/GROUP;
title " LOB &VAR TPL Membership" ;
footnote" Run at &sDay &stime" ;
RUN;
%MEND;
%ABC (VAR=0100);
%ABC (VAR=0500);

7 REPLIES 7
ballardw
Super User

You do not show an ODS PDF CLOSE statement. Was there one in the actual program? If not you may have a previous version of the pdf file.

 

 

JHE
Obsidian | Level 7 JHE
Obsidian | Level 7

Ok, I see.  Let me check if I remove CLOSE statement. 

 

See attach,

 

ballardw
Super User

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.

JHE
Obsidian | Level 7 JHE
Obsidian | Level 7

Thank you !

 

I am going to try .

 

 

Ksharp
Super User
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;
JHE
Obsidian | Level 7 JHE
Obsidian | Level 7
thank you for reply to me. still dose not working ..

##- Please type your reply above this line. Simple formatting, no
attachments. -##
ballardw
Super User

@JHE wrote:
thank you for reply to me. still dose not working ..

##- Please type your reply above this line. Simple formatting, no
attachments. -##

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.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 7 replies
  • 2213 views
  • 0 likes
  • 3 in conversation