<?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: Formatting a put c $ in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299810#M63282</link>
    <description>&lt;P&gt;Questions: &amp;nbsp;Is C one variable&lt;/P&gt;&lt;P&gt;C is one variable composed of two seperate lines of character data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: How long should be 1st line&amp;nbsp;&lt;/P&gt;&lt;P&gt;$PROBLEM TWO PEAK SEQUENTIAL ZERO AND FIRST ORDER&lt;/P&gt;&lt;P&gt;This is no more than 100 characters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Question:Can C be so long that you'll want to break it into more than two lines? If yes - what is the maximum ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Yes I need two lines and see response above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I actually put your code into my do loop which resulted in the following output of only the second line(i.e.,&amp;nbsp;$DATA ..\TFIT1.CSV IGNORE=W). The first line was not output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;CODE:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;[input c $1000.;&lt;BR /&gt;do i=1 to 2;&lt;BR /&gt;myfile='/folders/myfolders/bootnew/REF' || trim(left(put(i,8.))) || '.ctl';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;file dummy filevar=myfile MOD ;&lt;BR /&gt;if _n_=2 then do;&lt;BR /&gt;if i=1 then do;&lt;BR /&gt;amp_loc=index(c,'&amp;amp;');&lt;BR /&gt;first_half=substr(c,1,amp_loc-1);&lt;BR /&gt;last_half=substr(c,amp_loc+2);&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;c= trim(first_half) || trim(left(put(i,8.))) || last_half;&lt;BR /&gt;c1=substr(c,1,100);&lt;BR /&gt;c2=substr(c,81);&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;put c1 $;&lt;BR /&gt;put c2 $;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2016 12:16:55 GMT</pubDate>
    <dc:creator>jacksonan123</dc:creator>
    <dc:date>2016-09-21T12:16:55Z</dc:date>
    <item>
      <title>Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299796#M63278</link>
      <description>&lt;P&gt;I have a put c $ in a program and the output looks like this all on one line as output A&lt;/P&gt;&lt;P&gt;$PROBLEM TWO PEAK SEQUENTIAL ZERO AND FIRST ORDER$DATA ..\TFIT1.CSV IGNORE=W&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I would like the output to look like this as two seperate lines as output B&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$PROBLEM TWO PEAK SEQUENTIAL ZERO AND FIRST ORDER&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$DATA ..\TFIT1.CSV IGNORE=W&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My question is how can I format the put c $ statement to get the output to look like output B and not output A?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 11:01:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299796#M63278</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2016-09-21T11:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299799#M63280</link>
      <description>&lt;P&gt;Is C &amp;nbsp;one variable only?&lt;/P&gt;&lt;P&gt;How long should br 1st line ?&lt;/P&gt;&lt;P&gt;Can be C so long that you'll want to braek it into more than two lines? If yes - what is the maximum ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is one possibility:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;c1 = substr(c,1, 80); &amp;nbsp;/* 80 as max length for 1st line */&lt;/P&gt;&lt;P&gt;c2 = substr(c,81); &amp;nbsp; &amp;nbsp; &amp;nbsp;/* the rest of C to be on next line */&lt;/P&gt;&lt;P&gt;put c1 $;&lt;/P&gt;&lt;P&gt;put c2 $;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 11:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299799#M63280</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-09-21T11:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299810#M63282</link>
      <description>&lt;P&gt;Questions: &amp;nbsp;Is C one variable&lt;/P&gt;&lt;P&gt;C is one variable composed of two seperate lines of character data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: How long should be 1st line&amp;nbsp;&lt;/P&gt;&lt;P&gt;$PROBLEM TWO PEAK SEQUENTIAL ZERO AND FIRST ORDER&lt;/P&gt;&lt;P&gt;This is no more than 100 characters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Question:Can C be so long that you'll want to break it into more than two lines? If yes - what is the maximum ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Yes I need two lines and see response above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I actually put your code into my do loop which resulted in the following output of only the second line(i.e.,&amp;nbsp;$DATA ..\TFIT1.CSV IGNORE=W). The first line was not output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;CODE:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;[input c $1000.;&lt;BR /&gt;do i=1 to 2;&lt;BR /&gt;myfile='/folders/myfolders/bootnew/REF' || trim(left(put(i,8.))) || '.ctl';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;file dummy filevar=myfile MOD ;&lt;BR /&gt;if _n_=2 then do;&lt;BR /&gt;if i=1 then do;&lt;BR /&gt;amp_loc=index(c,'&amp;amp;');&lt;BR /&gt;first_half=substr(c,1,amp_loc-1);&lt;BR /&gt;last_half=substr(c,amp_loc+2);&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;c= trim(first_half) || trim(left(put(i,8.))) || last_half;&lt;BR /&gt;c1=substr(c,1,100);&lt;BR /&gt;c2=substr(c,81);&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;put c1 $;&lt;BR /&gt;put c2 $;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299810#M63282</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2016-09-21T12:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299814#M63283</link>
      <description>Hi, it appears to me that the presence of a $ dictates the "line". If so, then why is your INDEX function looking for an &amp;amp;? &lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 21 Sep 2016 12:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299814#M63283</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-09-21T12:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299832#M63290</link>
      <description>&lt;P&gt;You were very close to your target.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Change code to:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[input c $1000.;&lt;BR /&gt;do i=1 to 2;&lt;BR /&gt;myfile='/folders/myfolders/bootnew/REF' || trim(left(put(i,8.))) || '.ctl';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;file dummy filevar=myfile MOD ;&lt;BR /&gt;if _n_=2 then do;&lt;BR /&gt;if i=1 then do;&lt;BR /&gt;amp_loc=index(c,'&amp;amp;');&lt;BR /&gt;first_half=substr(c,1,amp_loc-1);&lt;BR /&gt;last_half=substr(c,amp_loc+2);&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;c= trim(first_half); output;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;c= trim(left(put(i,8.))) || last_half; output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 13:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299832#M63290</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-09-21T13:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299843#M63293</link>
      <description>&lt;P&gt;When I use your code only line 1 is output as:&lt;/P&gt;&lt;P&gt;$PROBLEM TWO PEAK SEQUENTIAL ZERO AND FIRST ORDER&amp;nbsp;2.CSV IGNORE=W&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Line two does not appear. &amp;nbsp;I&amp;nbsp;tried some modifications of your code and either I got only one line output or both output but on the same &amp;nbsp;line.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 14:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299843#M63293</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2016-09-21T14:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299849#M63294</link>
      <description>&lt;P&gt;Please upload your full code and your output;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 14:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299849#M63294</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-09-21T14:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299859#M63296</link>
      <description>&lt;P&gt;Code in brackets&lt;/P&gt;&lt;P&gt;[data _null_ ;&lt;/P&gt;&lt;P&gt;infile '/folders/myfolders/bootnew/REF.CTL' firstobs=1 obs=2 truncover;&lt;BR /&gt;/* INPUT CHARACTER FILE*/&lt;BR /&gt;input c $1000.;&lt;BR /&gt;do i=1 to 2;&lt;BR /&gt;myfile='/folders/myfolders/bootnew/REF' || trim(left(put(i,8.))) || '.ctl';&lt;/P&gt;&lt;P&gt;file dummy filevar=myfile MOD ;&lt;BR /&gt;if _n_=2 then do;&lt;BR /&gt;if i=1 then do;&lt;BR /&gt;amp_loc=index(c,'&amp;amp;');&lt;BR /&gt;first_half=substr(c,1,amp_loc-1);&lt;BR /&gt;last_half=substr(c,amp_loc+2);&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;c= trim(first_half) || trim(left(put(i,8.))) || last_half;&lt;BR /&gt;end;&lt;BR /&gt;put c $;&lt;BR /&gt;end;&lt;BR /&gt;run;]&lt;/P&gt;&lt;P&gt;Original file&lt;/P&gt;&lt;P&gt;$PROBLEM TWO PEAK SEQUENTIAL ZERO AND FIRST ORDER&lt;BR /&gt;$DATA ..\TFIT&amp;amp;i.CSV IGNORE=W&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output file: All on one line&lt;/P&gt;&lt;P&gt;$PROBLEM TWO PEAK SEQUENTIAL ZERO AND FIRST ORDER&amp;nbsp;$DATA ..\TFIT1.CSV IGNORE=W&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 14:55:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299859#M63296</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2016-09-21T14:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299862#M63298</link>
      <description>&lt;P&gt;It is a guess but run next code (without changes) and upload the result:&lt;/P&gt;&lt;P&gt;(It seems that you break line C into 2 halves and afterwards concatenate the halves back to one line)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _NULL_;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;infile '/folders/myfolders/bootnew/REF.CTL' firstobs=1 obs=2 truncover;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;input &amp;nbsp;C $1000. ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myfile='/folders/myfolders/bootnew/REF' || trim(left(put(i,8.))) || '.ctl';&lt;/P&gt;&lt;P&gt;file dummy filevar=myfile MOD ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;amp_loc=index(c,'&amp;amp;');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;first_half=substr(c,1,amp_loc-1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;last_half=substr(c,amp_loc+2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;put first_half $100.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;put last_half $100.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299862#M63298</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-09-21T15:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299873#M63299</link>
      <description>&lt;P&gt;Sorry, I missed something. Ignore my previous post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your input is made already of two lines.&lt;/P&gt;&lt;P&gt;You concatenate the two lines to ceate a new C line and then break it into two halves.&lt;/P&gt;&lt;P&gt;You broke it searching for '&amp;amp;' character but you expect 2 lines to start each with '$ character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here your code with some changes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;/P&gt;&lt;P&gt;infile '/folders/myfolders/bootnew/REF.CTL' firstobs=1 obs=2 truncover;&lt;BR /&gt;/* INPUT CHARACTER FILE*/&lt;BR /&gt;input c $1000.;&lt;BR /&gt;do i=1 to 2;&lt;BR /&gt;myfile='/folders/myfolders/bootnew/REF' || trim(left(put(i,8.))) || '.ctl';&lt;/P&gt;&lt;P&gt;file dummy filevar=myfile MOD ;&lt;BR /&gt;if _n_=2 then do;&lt;BR /&gt;if i=1 then do;&lt;BR /&gt;amp_loc=index(c,'&amp;amp;');&lt;BR /&gt;first_half=substr(c,1,amp_loc-1);&lt;BR /&gt;last_half=substr(c,amp_loc+2);&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;c= trim(first_half) || trim(left(put(i,8.))) || last_half;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;line1 = '$' || scan(c,1,'$');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;line2 = '$' || scan(c,2,'$');&lt;/STRONG&gt;&lt;BR /&gt;end;&lt;BR /&gt;/* put c $; *** replace to: */&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put line1 $100.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put line2 $100.;&lt;/STRONG&gt;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299873#M63299</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-09-21T15:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299885#M63302</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Sorry, I missed something. Ignore my previous post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you see the "cog" next to the upper right corner of one of your posts you can click on that and select Edit to correct your post.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 16:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299885#M63302</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-21T16:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299891#M63303</link>
      <description>&lt;P&gt;I tried string statements and scans to identify the two lines as being seperate but the output always contains&amp;nbsp;either&amp;nbsp;both on the same line or in this case of the scan syntax only line 1 was output (i.e.,&amp;nbsp;$PROBLEM TWO PEAK SEQUENTIAL ZERO AND FIRST ORDER).&lt;/P&gt;&lt;P&gt;SAS seems to ignore the second line&amp;nbsp;&lt;STRONG&gt;line2 = '$' || scan(c,2,'$');&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 16:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299891#M63303</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2016-09-21T16:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299923#M63309</link>
      <description>&lt;P&gt;To all:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got an answer from SAS consulting and the issue was that the file was UNIX formatted and the addition of termstr=lf resolved the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This command facilitates&amp;nbsp;reading files between UNIX and Windows.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 17:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/299923#M63309</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2016-09-21T17:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a put c $</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/300973#M63629</link>
      <description>&lt;P&gt;A reply from Support@SAS.com pointed out the file had a Unix format and that the input statement should contain termstr=lf which allowed the input to be read.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 09:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formatting-a-put-c/m-p/300973#M63629</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2016-09-27T09:53:50Z</dc:date>
    </item>
  </channel>
</rss>

