BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
bheinsius
Lapis Lazuli | Level 10

hi,

i have a stored process that generates a pdf that is streamed to the browser.

when i set my browser's locale to Dutch, the pdf is created with papersize A4.

when i set my browser's locale to US, the pdf is created with papersize letter.

2 questions:

1. i cannot find documentation describing this behavior. is there any?

2. how can i influence the papersize setting without having to change browser locale? options papersize=a4 doesn't work because sp deployment inserts %stpbegin before it causing it to not work. i can't / don't want to manually edit the stored process code after deploying it because i don't have the permissions to do that.

thanks already,

Bart

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

The documentation in my 9.2 install when looking at the index for NLS has a subtopic of locale that lists implicit items associated with locale. Also the same documentation says that if you explicitly set an option, such as papersize, that will override the implicit setting from locale. So setting

options papersize should work.

But I'm not sure about where that would go in relation to stored process. Possibly in whatever calls the process?

View solution in original post

3 REPLIES 3
ballardw
Super User

The documentation in my 9.2 install when looking at the index for NLS has a subtopic of locale that lists implicit items associated with locale. Also the same documentation says that if you explicitly set an option, such as papersize, that will override the implicit setting from locale. So setting

options papersize should work.

But I'm not sure about where that would go in relation to stored process. Possibly in whatever calls the process?

jakarman
Barite | Level 11

SAS(R) 9.2 National Language Support (NLS): Reference Guide ( specifying a Locale ) is telling:

DATESTYLE=    DFLANG=    ENCODING=   PAPERSIZE=     TRANTAB=

For the default values.

SAS(R) 9.2 National Language Support (NLS): Reference Guide ( LOCALE= Values and Default Settings for ENCODING, PAPERSIZE, DFLANG, and DATESTYLE options)

SAS(R) 9.2 Intelligence Platform: Web Application Administration Guide, Fourth Edition (SAS Web Infrastructure Platform)

---->-- ja karman --<-----
bheinsius
Lapis Lazuli | Level 10

thank you both.

i will submit a separate question how to set the papersize.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1753 views
  • 3 likes
  • 3 in conversation