<?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 Re: %Include in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465799#M118819</link>
    <description>&lt;P&gt;Thank you for the explanation. I will let others be aware of the system option.&lt;/P&gt;</description>
    <pubDate>Tue, 29 May 2018 19:15:56 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2018-05-29T19:15:56Z</dc:date>
    <item>
      <title>%Include</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465770#M118806</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use only a portion of the code call with %include in Z/OS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, we have a SAS program containing 500 lines and we would like to include this program but wer'e only interested in the code between line 117 and 228.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 17:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465770#M118806</guid>
      <dc:creator>JoeQcSas</dc:creator>
      <dc:date>2018-05-29T17:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: %Include</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465774#M118809</link>
      <description>&lt;P&gt;No. As the SAS Documentation states:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-restriction"&gt;&lt;STRONG&gt;Restriction&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;You cannot selectively include lines from an external file.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can however include lines selectively that were previously entered in the same SAS program&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 18:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465774#M118809</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-05-29T18:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: %Include</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465778#M118812</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212596"&gt;@JoeQcSas&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to use only a portion of the code call with %include in Z/OS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, we have a SAS program containing 500 lines and we would like to include this program but wer'e only interested in the code between line 117 and 228.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No but can use a tiny data step that you could make into a macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename FT15F001 temp;
filename FT44F001 temp;
data _null_;
   infile FT15F001 firstobs=2 obs=3;
   file FT44F001;
   input;
   put _infile_;
   parmcards4;
*this is line 1;
*Line 2
line 3;
page;
;;;;

%inc FT44F001 / source2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;50   filename FT15F001 temp;
51   filename FT44F001 temp;
52   data _null_;
53      infile FT15F001 firstobs=2 obs=3;
54      file FT44F001;
55      input;
56      put _infile_;
57      parmcards4;
62   ;;;;

NOTE: The infile FT15F001 is:
      (system-specific pathname),
      (system-specific file attributes)

NOTE: The file FT44F001 is:
      (system-specific pathname),
      (system-specific file attributes)

NOTE: 2 records were read from the infile (system-specific pathname).
      The minimum record length was 7.
      The maximum record length was 7.
NOTE: 2 records were written to the file (system-specific pathname).
      The minimum record length was 7.
      The maximum record length was 7.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds


63
64   %inc FT44F001 / source2;
NOTE: %INCLUDE (level 1) file FT44F001 is (system-specific pathname).
65  +*Line 2
66  +line 3;
NOTE: %INCLUDE (level 1) ending.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 May 2018 18:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465778#M118812</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-05-29T18:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: %Include</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465793#M118817</link>
      <description>&lt;P&gt;I always couldn't get it, why SAS has to pair "parmcards4" with an obscure device name such as "FT15F001"? It would be nice if SAS&amp;nbsp;can remove this kind of restriction, so programmers don't have to remember or &amp;nbsp;look it up in&amp;nbsp;docs of version&amp;nbsp;8&amp;nbsp;and just come up some generic names they like.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 18:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465793#M118817</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2018-05-29T18:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: %Include</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465796#M118818</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4877"&gt;@Haikuo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I always couldn't get it, why SAS has to pair "parmcards4" with an obscure device name such as "FT15F001"? It would be nice if SAS&amp;nbsp;can remove this kind of restriction, so programmers don't have to remember or &amp;nbsp;look it up in&amp;nbsp;docs of version&amp;nbsp;8&amp;nbsp;and just come up some generic names they like.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4877"&gt;@Haikuo&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The name FT15F001&amp;nbsp;is the default&amp;nbsp;and can be changed.&amp;nbsp;&amp;nbsp;The file does not have to be temporary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Back when there was&amp;nbsp;only mainframe&amp;nbsp;FT11F001 and FT12F001 were LOG&amp;nbsp;and&amp;nbsp;LST respectively.&amp;nbsp; I can't remember if there were other unit numbers used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PARMCARDS is fully documented in the most current SAS documentation.&amp;nbsp; This excerpt is in reference to the SAS system option PARMCARDS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
Syntax 


PARMCARDS=file-ref



Syntax Description 


file-ref


specifies the file reference to open. 


Details 


The PARMCARDS= system option specifies the file reference of a file that SAS opens when it encounters a PARMCARDS (or PARMCARDS4) statement in a procedure. 

SAS writes all data lines after the PARMCARDS (or PARMCARDS4) statement to the file until it encounters a delimiter line of either one or four semicolons. The file is then closed and made available to the procedure to read. There is no parsing or macro expansion of the data lines. &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 19:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465796#M118818</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-05-29T19:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: %Include</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465799#M118819</link>
      <description>&lt;P&gt;Thank you for the explanation. I will let others be aware of the system option.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 19:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465799#M118819</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2018-05-29T19:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: %Include</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465801#M118820</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4877"&gt;@Haikuo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I will let others be aware of the system option.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you use PARMCARDS often?&amp;nbsp; I don't and thought I was the only one who uses it ever.&amp;nbsp; (but I never say ever -:)&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 19:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465801#M118820</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-05-29T19:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: %Include</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465802#M118821</link>
      <description>&lt;P&gt;We do, John. We do&amp;nbsp;SAS tutorials/presentations for clients,&amp;nbsp;and this&amp;nbsp;comes in handy in terms of&amp;nbsp;simulating&amp;nbsp;input files (stream)&amp;nbsp;with their contents exposed the same screen.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 19:26:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Include/m-p/465802#M118821</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2018-05-29T19:26:53Z</dc:date>
    </item>
  </channel>
</rss>

