<?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 Batch file - options lrec=1000 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49910#M13552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANKS!&amp;nbsp; Worked like a charm.&amp;nbsp; Sorry just not that good at White Papers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2011 18:26:43 GMT</pubDate>
    <dc:creator>paulsparrow</dc:creator>
    <dc:date>2011-08-17T18:26:43Z</dc:date>
    <item>
      <title>Batch file - options lrec=1000</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49903#M13545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write a batch file and have my sas session allow for fields of 1000 charactors.&amp;nbsp; Can't seem to get it to work.&amp;nbsp; Any suggestions. (SAS 9.2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\SAS\SASFoundation\9.2\SAS.EXE"&amp;nbsp; &lt;STRONG&gt;options lrecl=3000&lt;/STRONG&gt; -icon -noterminal -nosplash -noxwait -noxsync -CONFIG "C:\Program Files\SAS\SASFoundation\9.2\SASV9.CFG"&amp;nbsp; -SYSIN&amp;nbsp; "X:\Paul\Programs\Major\Onboarding\Code\onboarding_trial_030_em.sas"&amp;nbsp; -LOG&amp;nbsp;&amp;nbsp;&amp;nbsp; "X:\Paul\Programs\Major\Onboarding\Code\onboarding_trial_030_em.log"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 16:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49903#M13545</guid>
      <dc:creator>paulsparrow</dc:creator>
      <dc:date>2011-08-17T16:48:44Z</dc:date>
    </item>
    <item>
      <title>Batch file - options lrec=1000</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49904#M13546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at: &lt;A href="http://support.sas.com/kb/15/883.html"&gt;http://support.sas.com/kb/15/883.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to be runing 9.2 or newer and the options has to be in the configuration file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the above mentioned documentation:&lt;/P&gt;&lt;P&gt; Submitting a SAS program via a batch file imposes a maximum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length limit of 256 characters prior to SAS 9.2.&amp;nbsp; For SAS 9.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and beyond you can use the new SAS system option of LRECL= to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; specify a range of 1-32767 to use for reading and writing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; external files.&amp;nbsp; The default for the LRECL= system option is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 256.&amp;nbsp; This option is valid in the configuration file, at SAS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; invocation, the OPTIONS statement, or the SAS Systems Option&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.&amp;nbsp; Under z/OS, the LRECL= system option is recognized only &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for reading and writing HFS files. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 17:02:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49904#M13546</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-17T17:02:54Z</dc:date>
    </item>
    <item>
      <title>Batch file - options lrec=1000</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49905#M13547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have read this but I am unable to decipher.&amp;nbsp; Looking for an example of where I put the options statement (batch file or cfg file) and how do I write it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 17:12:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49905#M13547</guid>
      <dc:creator>paulsparrow</dc:creator>
      <dc:date>2011-08-17T17:12:16Z</dc:date>
    </item>
    <item>
      <title>Batch file - options lrec=1000</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49906#M13548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read it wrong.&amp;nbsp; It is valid in all of those places.&amp;nbsp; Have you tried simply removing the word 'options'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 17:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49906#M13548</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-17T17:19:28Z</dc:date>
    </item>
    <item>
      <title>Batch file - options lrec=1000</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49907#M13549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried that (with and without dash in front of options)&amp;nbsp; Doesn't work.&amp;nbsp; See my original post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 17:24:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49907#M13549</guid>
      <dc:creator>paulsparrow</dc:creator>
      <dc:date>2011-08-17T17:24:47Z</dc:date>
    </item>
    <item>
      <title>Batch file - options lrec=1000</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49908#M13550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried it in the following way?&amp;nbsp; immediately following sas.exe,&lt;/P&gt;&lt;P&gt;..etc.etc..sas.exe -lrecl 1000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 17:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49908#M13550</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-17T17:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Batch file - options lrec=1000</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49909#M13551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you appear to try and execute this code as a batch process your should add the -batch system option.&amp;nbsp; All system options should be defined by -[option] &amp;lt;[value]&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Program Files\SAS\SASFoundation\9.2\SAS.EXE"&amp;nbsp; &lt;STRONG&gt;-batch&lt;/STRONG&gt; -&lt;STRONG style="font-size: 12px;"&gt;lrecl 3000&lt;/STRONG&gt; -icon -noterminal -nosplash -noxwait -noxsync -CONFIG "C:\Program Files\SAS\SASFoundation\9.2\SASV9.CFG"&amp;nbsp; -SYSIN&amp;nbsp; "X:\Paul\Programs\Major\Onboarding\Code\onboarding_trial_030_em.sas"&amp;nbsp; -LOG&amp;nbsp;&amp;nbsp;&amp;nbsp; "X:\Paul\Programs\Major\Onboarding\Code\onboarding_trial_030_em.log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually I prefer to keep lrecl option parameters inside my programs and use an options statement or on my filename statement or infile statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Options Statement syntax:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000289431.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000289431.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filename Statement syntax:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#chfnoptfmain.htm"&gt;http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#chfnoptfmain.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infile Statement syntax:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000146932.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000146932.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 17:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49909#M13551</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-08-17T17:54:12Z</dc:date>
    </item>
    <item>
      <title>Batch file - options lrec=1000</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49910#M13552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANKS!&amp;nbsp; Worked like a charm.&amp;nbsp; Sorry just not that good at White Papers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 18:26:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Batch-file-options-lrec-1000/m-p/49910#M13552</guid>
      <dc:creator>paulsparrow</dc:creator>
      <dc:date>2011-08-17T18:26:43Z</dc:date>
    </item>
  </channel>
</rss>

