<?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: put (_all_) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/put-all/m-p/882547#M348667</link>
    <description>&lt;P&gt;Great information and thanks for the all the specific links to documentation.&lt;BR /&gt;&lt;BR /&gt;I still don't see any mention of the what (:) or (~) etc means.&amp;nbsp; Can you help?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 21:11:26 GMT</pubDate>
    <dc:creator>kwyland1</dc:creator>
    <dc:date>2023-06-26T21:11:26Z</dc:date>
    <item>
      <title>put (_all_)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-all/m-p/561470#M157186</link>
      <description>&lt;P&gt;Someone gave me code a while back with put (_all_) in it. I went to search for another use for it but can't find the documentation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;file "k:\Report_&amp;amp;ryr._Q&amp;amp;qtr._v&amp;amp;rundt..txt" dsd dlm=',';&lt;BR /&gt;set out4;&lt;BR /&gt;put ( _all_ ) (~);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I now know the (~) puts quote marks around all [character?] fields. I found definitions tin Communities about (+0), but I want to know more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help is appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 16:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-all/m-p/561470#M157186</guid>
      <dc:creator>myraao</dc:creator>
      <dc:date>2019-05-24T16:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: put (_all_)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-all/m-p/561472#M157188</link>
      <description>&lt;P&gt;The documentation can be found in the below link, where it says "How to Group Variables and Formats".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;_all_&lt;/FONT&gt;, as the name suggests, refers to all variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When variables are placed in brackets after the &lt;FONT face="courier new,courier"&gt;put&lt;/FONT&gt; statement then that is referred to a &lt;EM&gt;variable-list&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000175758.htm" target="_blank" rel="noopener"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000175758.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 16:39:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-all/m-p/561472#M157188</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2019-05-24T16:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: put (_all_)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-all/m-p/561494#M157202</link>
      <description>&lt;P&gt;The _ALL_ is just a variable list.&amp;nbsp; Just like VAR1-VAR10 or NAME SEX AGE or&amp;nbsp; FIRST -- LAST or PREFIX: or _NUMERIC_ or _CHARACTER_ etc..&amp;nbsp;Variable lists are used all over SAS.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p0wphcpsfgx6o7n1sjtqzizp1n39.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p0wphcpsfgx6o7n1sjtqzizp1n39.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The (varlist) (fmtlist) syntax is part of the PUT statement.&amp;nbsp; Inside the first parentheses is the list of variables and in the second is the list of formats (and modifiers like ~ or pointer motions like +0).&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=n0jks6tlw4a1v1n1ssob6gtpxfth.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=n0jks6tlw4a1v1n1ssob6gtpxfth.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also apply a list of formats to a list of variables in a INPUT statement.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p0f9yk6pd4znukn1rlw6hzkg1url.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p0f9yk6pd4znukn1rlw6hzkg1url.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you ever learned FORTRAN it is like the syntax for a READ or WRITE statement.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.math-cs.gordon.edu/courses/cs323/FORTRAN/fortran.html" target="_blank"&gt;http://www.math-cs.gordon.edu/courses/cs323/FORTRAN/fortran.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        333    FORMAT(3I4,F8.5,A1,1X,A1,I6)
    
    along with a READ statement,
    
        READ(&lt;I&gt;unit&lt;/I&gt;,&lt;I&gt;formatStmtNumber&lt;/I&gt;) &lt;I&gt;variableList&lt;/I&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 May 2019 17:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-all/m-p/561494#M157202</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-24T17:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: put (_all_)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-all/m-p/882547#M348667</link>
      <description>&lt;P&gt;Great information and thanks for the all the specific links to documentation.&lt;BR /&gt;&lt;BR /&gt;I still don't see any mention of the what (:) or (~) etc means.&amp;nbsp; Can you help?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 21:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-all/m-p/882547#M348667</guid>
      <dc:creator>kwyland1</dc:creator>
      <dc:date>2023-06-26T21:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: put (_all_)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-all/m-p/882554#M348669</link>
      <description>&lt;P&gt;The documentation of the LIST mode of PUT statement mentions the ~ and : modifiers.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/p0jcwhe1ofmb49n1xf1q2kc44b0v.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/p0jcwhe1ofmb49n1xf1q2kc44b0v.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Although the requirement that you follow the : modifier with a format specification is false.&lt;/P&gt;
&lt;PRE&gt;618  data _null_;
619    set sashelp.class;
620    put name : age;
621  run;

Alfred 14
Alice 13
Barbara 13
Carol 14
Henry 14
James 12
Jane 12
Janet 15
Jeffrey 13
John 12
Joyce 11
Judy 14
Louise 12
Mary 15
Philip 16
Robert 12
Ronald 15
Thomas 11
William 15
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jun 2023 22:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-all/m-p/882554#M348669</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-26T22:15:54Z</dc:date>
    </item>
  </channel>
</rss>

