<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Why does Proc OPTLOAD change the PAGESIZE to 55? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-does-Proc-OPTLOAD-change-the-PAGESIZE-to-55/m-p/799713#M314471</link>
    <description>&lt;P&gt;Sample Program&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options pagesize=max;
%put NOTE: PAGESIZE=%sysfunc(getoption(pagesize));

proc &lt;STRONG&gt;optsave&lt;/STRONG&gt; out=work.sasoptions;&lt;BR /&gt;run;

data _null_;
  set work.sasoptions;
  where optname='PAGESIZE';
  put optname= optvalue=;
run;

proc &lt;STRONG&gt;optload&lt;/STRONG&gt; data=work.sasoptions; &lt;BR /&gt;run;

%put NOTE: PAGESIZE=%sysfunc(getoption(pagesize));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;136  options pagesize=max;
137
138  %put NOTE: PAGESIZE=%sysfunc(getoption(pagesize));
NOTE: PAGESIZE=32767
139
140  proc optsave out=work.sasoptions ;run;

NOTE: The data set WORK.SASOPTIONS has 307 observations and 2 variables.
NOTE: PROCEDURE OPTSAVE used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds


141
142  data _null_;
143    set work.sasoptions;
144    where optname='PAGESIZE';
145    put optname= optvalue=;
146  run;

&lt;FONT size="5"&gt;&lt;STRONG&gt;OPTNAME=PAGESIZE OPTVALUE=32767&lt;/STRONG&gt;&lt;/FONT&gt;
NOTE: There were 1 observations read from the data set WORK.SASOPTIONS.
      WHERE optname='PAGESIZE';
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


147
148  proc optload data=work.sasoptions;run;

NOTE: PROCEDURE OPTLOAD used (Total process time):
      real time           1.10 seconds
      cpu time            1.04 seconds

149
150  %put NOTE: PAGESIZE=%sysfunc(getoption(pagesize));
&lt;FONT size="7"&gt;&lt;STRONG&gt;NOTE: PAGESIZE=55
&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The pagesize value in the save data set is clearly 32767.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why does OPTLOAD change it to 55?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 01:06:06 GMT</pubDate>
    <dc:creator>RichardDeVen</dc:creator>
    <dc:date>2022-03-03T01:06:06Z</dc:date>
    <item>
      <title>Why does Proc OPTLOAD change the PAGESIZE to 55?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-Proc-OPTLOAD-change-the-PAGESIZE-to-55/m-p/799713#M314471</link>
      <description>&lt;P&gt;Sample Program&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options pagesize=max;
%put NOTE: PAGESIZE=%sysfunc(getoption(pagesize));

proc &lt;STRONG&gt;optsave&lt;/STRONG&gt; out=work.sasoptions;&lt;BR /&gt;run;

data _null_;
  set work.sasoptions;
  where optname='PAGESIZE';
  put optname= optvalue=;
run;

proc &lt;STRONG&gt;optload&lt;/STRONG&gt; data=work.sasoptions; &lt;BR /&gt;run;

%put NOTE: PAGESIZE=%sysfunc(getoption(pagesize));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;136  options pagesize=max;
137
138  %put NOTE: PAGESIZE=%sysfunc(getoption(pagesize));
NOTE: PAGESIZE=32767
139
140  proc optsave out=work.sasoptions ;run;

NOTE: The data set WORK.SASOPTIONS has 307 observations and 2 variables.
NOTE: PROCEDURE OPTSAVE used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds


141
142  data _null_;
143    set work.sasoptions;
144    where optname='PAGESIZE';
145    put optname= optvalue=;
146  run;

&lt;FONT size="5"&gt;&lt;STRONG&gt;OPTNAME=PAGESIZE OPTVALUE=32767&lt;/STRONG&gt;&lt;/FONT&gt;
NOTE: There were 1 observations read from the data set WORK.SASOPTIONS.
      WHERE optname='PAGESIZE';
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


147
148  proc optload data=work.sasoptions;run;

NOTE: PROCEDURE OPTLOAD used (Total process time):
      real time           1.10 seconds
      cpu time            1.04 seconds

149
150  %put NOTE: PAGESIZE=%sysfunc(getoption(pagesize));
&lt;FONT size="7"&gt;&lt;STRONG&gt;NOTE: PAGESIZE=55
&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The pagesize value in the save data set is clearly 32767.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why does OPTLOAD change it to 55?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 01:06:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-Proc-OPTLOAD-change-the-PAGESIZE-to-55/m-p/799713#M314471</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2022-03-03T01:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Proc OPTLOAD change the PAGESIZE to 55?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-Proc-OPTLOAD-change-the-PAGESIZE-to-55/m-p/799745#M314490</link>
      <description>&lt;P&gt;Are you running on Windows?&amp;nbsp; It does not do it for me on Unix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For me it seems to be reverting to some type of default value that is different than yours.&amp;nbsp; Also does it for LINESIZE.&lt;/P&gt;
&lt;PRE&gt;1050  %put ps=%optval(pagesize) ls=%optval(linesize);
ps=100 ls=145
1051  proc optload data=save; run;

NOTE: PROCEDURE OPTLOAD used (Total process time):
      real time           12.07 seconds
      cpu time            1.15 seconds


1052  %put ps=%optval(pagesize) ls=%optval(linesize);
ps=41 ls=134
&lt;/PRE&gt;
&lt;P&gt;I wonder if there is a user preference somewhere that overrides it?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or just a Windows bug?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 06:38:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-Proc-OPTLOAD-change-the-PAGESIZE-to-55/m-p/799745#M314490</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-03-03T06:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Proc OPTLOAD change the PAGESIZE to 55?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-Proc-OPTLOAD-change-the-PAGESIZE-to-55/m-p/799747#M314492</link>
      <description>&lt;P&gt;So if you only reload the PAGESIZE and LINESIZE options it works.&lt;/P&gt;
&lt;P&gt;So now just need to figure out which of the other 299 options is messing it up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1077  %put ps=%optval(pagesize) ls=%optval(linesize);
ps=100 ls=145
1078  proc optload data=save(where=(optname in ('PAGESIZE','LINESIZE'))); run;

NOTE: PROCEDURE OPTLOAD used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


1079  %put ps=%optval(pagesize) ls=%optval(linesize);
ps=100 ls=145
&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Mar 2022 06:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-Proc-OPTLOAD-change-the-PAGESIZE-to-55/m-p/799747#M314492</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-03-03T06:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Proc OPTLOAD change the PAGESIZE to 55?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-Proc-OPTLOAD-change-the-PAGESIZE-to-55/m-p/799796#M314527</link>
      <description>&lt;P&gt;Hi Tom:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Turns out that &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.2/uprint/p1a6e51zsy266jn1kfjmcl1y4a00.htm" target="_self"&gt;&lt;FONT face="courier new,courier"&gt;ORIENTATION&lt;/FONT&gt; &lt;/A&gt;is the culprit.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;H2 id="p1isbu6byw8peyn139gx2epg0cv7" class="xis-title"&gt;Details&lt;/H2&gt;
&lt;DIV id="p0128fbwir00fdn1snqiv0zgnite" class="xis-topicContent"&gt;
&lt;DIV id="p0b8m9bt2p56p7n14iz37iatew7x" class="xis-paragraph"&gt;Changing the value of this option might result in changes to the values of the portable LINESIZE= and PAGESIZE= system options.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The order of the option values as retrieved by OPTLOAD determine the outcome.&amp;nbsp; ORIENTATION will overwrite prior retrieved LS and PS.&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;INFO: SYSSCPL=X64_10PRO SYSVLONG4=9.04.01M6P11072018
INFO: PAGESIZE=32767                               /* current PS */
INFO: LINESIZE=256                                 /* current LS */

log saved options - order retrieved affected by where clause
INFO: OPTNAME=LINESIZE OPTVALUE=256                /* set LS */
INFO: OPTNAME=ORIENTATION OPTVALUE=PORTRAIT        /* sets LS and PS tacitly */
INFO: OPTNAME=PAGESIZE OPTVALUE=32767              /* set PS */

optloaded options - order retrieved affected by where clause
INFO: PAGESIZE=32767                               /* last set PS */ 
INFO: LINESIZE=98                                  /* last set LS */ 
&lt;/LI-CODE&gt;
&lt;P&gt;Is the output of this example code&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;options nosource nonotes;
options pagesize=max linesize=max;

%put INFO: &amp;amp;=SYSSCPL &amp;amp;=SYSVLONG4;
%put INFO: PAGESIZE=%sysfunc(getoption(pagesize));
%put INFO: LINESIZE=%sysfunc(getoption(linesize));

proc optsave out=work.sasoptions;
run;

data _null_;
  set work.sasoptions;
  where optname in ('LINESIZE' 'PAGESIZE' 'ORIENTATION');
  put 'INFO: ' optname= optvalue=;
run;

proc optload data=work.sasoptions;
  where optname in ('LINESIZE' 'PAGESIZE' 'ORIENTATION');
run;

%put INFO: PAGESIZE=%sysfunc(getoption(pagesize));
%put INFO: LINESIZE=%sysfunc(getoption(linesize));&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 10:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-Proc-OPTLOAD-change-the-PAGESIZE-to-55/m-p/799796#M314527</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2022-03-03T10:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Proc OPTLOAD change the PAGESIZE to 55?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-Proc-OPTLOAD-change-the-PAGESIZE-to-55/m-p/799819#M314544</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12477"&gt;@RichardDeVen&lt;/a&gt;&amp;nbsp;Nice sleuthing. SAS options nuances can be tricky to track down!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 12:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-Proc-OPTLOAD-change-the-PAGESIZE-to-55/m-p/799819#M314544</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-03-03T12:34:41Z</dc:date>
    </item>
  </channel>
</rss>

