<?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: FTP file output - one line per record in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/FTP-file-output-one-line-per-record/m-p/11049#M1172</link>
    <description>I will try that.  It's just strange that I have other outputs using the same FTP method and destination server..same put statements (longer records) and each observation is on a new line on the output file.</description>
    <pubDate>Fri, 10 Jun 2011 14:30:12 GMT</pubDate>
    <dc:creator>redfishJAX</dc:creator>
    <dc:date>2011-06-10T14:30:12Z</dc:date>
    <item>
      <title>FTP file output - one line per record</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/FTP-file-output-one-line-per-record/m-p/11047#M1170</link>
      <description>I am having issues getting a file to output w/ 1 record per line&lt;BR /&gt;
&lt;BR /&gt;
Using:&lt;BR /&gt;
FILENAME L15FTPS FTP "rcvfile15.raw" LRECL=184 &lt;BR /&gt;
CD="**"&lt;BR /&gt;
USER="***"&lt;BR /&gt;
PASS="***"&lt;BR /&gt;
HOST="*";&lt;BR /&gt;
&lt;BR /&gt;
w/ PUT statement:&lt;BR /&gt;
data dialerexp;&lt;BR /&gt;
	set TODIALER;&lt;BR /&gt;
	file l15ftps lrecl=184 ;&lt;BR /&gt;
	put &lt;BR /&gt;
@1	DLDATE	 	yymmddn8.&lt;BR /&gt;
@9	ACCTNUM		$14.&lt;BR /&gt;
@23	CUSTNM		$60.&lt;BR /&gt;
@83	CUSTTELID	$10.&lt;BR /&gt;
@93 	EXPD		$10.&lt;BR /&gt;
@103	TYPE		$2.&lt;BR /&gt;
@105	effdate		$8.&lt;BR /&gt;
@113	type1		$6.&lt;BR /&gt;
@119	method		$15.&lt;BR /&gt;
@134	obcall		$3.&lt;BR /&gt;
@137	usaaf		$3.&lt;BR /&gt;
@140	revdate		$8.&lt;BR /&gt;
@148	reviews		$5.&lt;BR /&gt;
@153	connects	$5.&lt;BR /&gt;
@158	contacts	$5.&lt;BR /&gt;
@163	actdate		yymmddn8.&lt;BR /&gt;
@171	blkdate		$8.&lt;BR /&gt;
@179	blkyn1		$3.&lt;BR /&gt;
@182	blkyn2		$3.;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The output is continous.  I need one line per record..so max line size should be 183.  I have tried several file options..such as lrecl and linesize but no luck..  please help.</description>
      <pubDate>Fri, 10 Jun 2011 14:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/FTP-file-output-one-line-per-record/m-p/11047#M1170</guid>
      <dc:creator>redfishJAX</dc:creator>
      <dc:date>2011-06-10T14:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: FTP file output - one line per record</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/FTP-file-output-one-line-per-record/m-p/11048#M1171</link>
      <description>FTP is not a record oriented format.  If you want some sort of end of line character(s), then you can code them manually.&lt;BR /&gt;
&lt;BR /&gt;
CRLF='090A'X;  &amp;lt;-- Windows&lt;BR /&gt;
LF='0A';  &amp;lt;-- Unix&lt;BR /&gt;
&lt;BR /&gt;
and include them in the output stream.</description>
      <pubDate>Fri, 10 Jun 2011 14:27:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/FTP-file-output-one-line-per-record/m-p/11048#M1171</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-06-10T14:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: FTP file output - one line per record</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/FTP-file-output-one-line-per-record/m-p/11049#M1172</link>
      <description>I will try that.  It's just strange that I have other outputs using the same FTP method and destination server..same put statements (longer records) and each observation is on a new line on the output file.</description>
      <pubDate>Fri, 10 Jun 2011 14:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/FTP-file-output-one-line-per-record/m-p/11049#M1172</guid>
      <dc:creator>redfishJAX</dc:creator>
      <dc:date>2011-06-10T14:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: FTP file output - one line per record</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/FTP-file-output-one-line-per-record/m-p/11050#M1173</link>
      <description>Hi:&lt;BR /&gt;
  According to the way that I used to count bytes in order to lay out sequential files, if BLKYN2 -starts- @182, and is 3 bytes, then it will occupy 182, 183 and 184. You said that "max line size should be 183" -- by my counting, max line size should be 184 for all the data, if BLKYN2 is actually 3 bytes.&lt;BR /&gt;
          &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
Layout starting at 171:&lt;BR /&gt;
              &lt;BR /&gt;
@171 blkdate $8.&lt;BR /&gt;
@179 blkyn1 $3.&lt;BR /&gt;
@182 blkyn2 $3.;&lt;BR /&gt;
                     &lt;BR /&gt;
     11111111111111111111&lt;BR /&gt;
     77777777788888888889&lt;BR /&gt;
.....12345678901234567890&lt;BR /&gt;
     xxxxxxxxyyyzzz&lt;BR /&gt;
     |------||-||-|&lt;BR /&gt;
        |     |  |&lt;BR /&gt;
     blkdate  |  |&amp;gt;blkyn2&lt;BR /&gt;
              |&lt;BR /&gt;
             blkyn1</description>
      <pubDate>Fri, 10 Jun 2011 15:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/FTP-file-output-one-line-per-record/m-p/11050#M1173</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-06-10T15:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: FTP file output - one line per record</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/FTP-file-output-one-line-per-record/m-p/11051#M1174</link>
      <description>Did you try next line point operator  /  ?&lt;BR /&gt;
[pre]&lt;BR /&gt;
put&lt;BR /&gt;
@1 DLDATE yymmddn8.&lt;BR /&gt;
@9 ACCTNUM $14.&lt;BR /&gt;
@23 CUSTNM $60.&lt;BR /&gt;
@83 CUSTTELID $10.&lt;BR /&gt;
@93 EXPD $10.&lt;BR /&gt;
@103 TYPE $2.&lt;BR /&gt;
@105 effdate $8.&lt;BR /&gt;
@113 type1 $6.&lt;BR /&gt;
@119 method $15.&lt;BR /&gt;
@134 obcall $3.&lt;BR /&gt;
@137 usaaf $3.&lt;BR /&gt;
@140 revdate $8.&lt;BR /&gt;
@148 reviews $5.&lt;BR /&gt;
@153 connects $5.&lt;BR /&gt;
@158 contacts $5.&lt;BR /&gt;
@163 actdate yymmddn8.&lt;BR /&gt;
@171 blkdate $8.&lt;BR /&gt;
@179 blkyn1 $3.&lt;BR /&gt;
@182 blkyn2 $3.  &lt;B&gt;/&lt;/B&gt;   ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 13 Jun 2011 03:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/FTP-file-output-one-line-per-record/m-p/11051#M1174</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-06-13T03:31:19Z</dc:date>
    </item>
  </channel>
</rss>

