<?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: Linebreakers and Delimiters in PROC EXPORT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Linebreakers-and-Delimiters-in-PROC-EXPORT/m-p/618465#M181446</link>
    <description>&lt;P&gt;Using ods latex sounds like a good idea. Have you tried it?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2020 07:14:22 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-01-20T07:14:22Z</dc:date>
    <item>
      <title>Linebreakers and Delimiters in PROC EXPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linebreakers-and-Delimiters-in-PROC-EXPORT/m-p/618406#M181411</link>
      <description>&lt;P&gt;I need to create a LaTeX table from SAS as follows.&lt;/P&gt;&lt;PRE&gt;1.8048	&amp;amp;	-0.0799	&amp;amp;	0.3966	&amp;amp;	-1.0833	&amp;amp;	2.2383	\\
-0.6242	&amp;amp;	0.5137	&amp;amp;	-0.0866	&amp;amp;	-0.5942	&amp;amp;	0.0319	\\
-0.7378	&amp;amp;	-0.2501	&amp;amp;	0.6850	&amp;amp;	-0.8042	&amp;amp;	-0.7443	\\
-0.7955	&amp;amp;	0.3407	&amp;amp;	-0.3005	&amp;amp;	-1.3498	&amp;amp;	0.4327	\\
1.3057	&amp;amp;	1.4251	&amp;amp;	-0.4158	&amp;amp;	1.6144	&amp;amp;	-1.0577	\\&lt;/PRE&gt;&lt;P&gt;I am going to pass these numbers to LaTeX using&lt;/P&gt;&lt;PRE&gt;\begin{tabular}{ccccc}
\input{numbersfromsas}
\end{tabular}&lt;/PRE&gt;&lt;P&gt;So I tried the following in SAS.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*proc iml;*/
/*have=rannor(j(5,5,1));*/
/*mattrib have format=8.4;*/
/*create have from have;*/
/*append from have;*/
/*quit;*/
proc export dbms=dlm replace file="!userprofile\desktop\table.tex";
putnames=no;
delimiter="&amp;amp;";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and this code creates the following outcome.&lt;/P&gt;&lt;PRE&gt;1.8048&amp;amp;-0.0799&amp;amp;0.3966&amp;amp;-1.0833&amp;amp;2.2383
-0.6242&amp;amp;0.5137&amp;amp;-0.0866&amp;amp;-0.5942&amp;amp;0.0319
-0.7378&amp;amp;-0.2501&amp;amp;0.6850&amp;amp;-0.8042&amp;amp;-0.7443
-0.7955&amp;amp;0.3407&amp;amp;-0.3005&amp;amp;-1.3498&amp;amp;0.4327
1.3057&amp;amp;1.4251&amp;amp;-0.4158&amp;amp;1.6144&amp;amp;-1.0577&lt;/PRE&gt;&lt;P&gt;(1) Can I put the "\\" at the end of each line as a linebreaker?&lt;/P&gt;&lt;P&gt;(2) Can I put the "(tab)&amp;amp;(tab)" rather than just the "&amp;amp;" as a delimiter? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 01:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linebreakers-and-Delimiters-in-PROC-EXPORT/m-p/618406#M181411</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-01-20T01:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreakers and Delimiters in PROC EXPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linebreakers-and-Delimiters-in-PROC-EXPORT/m-p/618465#M181446</link>
      <description>&lt;P&gt;Using ods latex sounds like a good idea. Have you tried it?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 07:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linebreakers-and-Delimiters-in-PROC-EXPORT/m-p/618465#M181446</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-01-20T07:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreakers and Delimiters in PROC EXPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linebreakers-and-Delimiters-in-PROC-EXPORT/m-p/618467#M181448</link>
      <description>&lt;P&gt;Thanks, but I do not consider ODS LATEX since the numbers must be customized a lot for the tables. For example, I sometimes apply formats in tables not vertically but horizontally—10 estimates horizontally and their test statistics.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 08:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linebreakers-and-Delimiters-in-PROC-EXPORT/m-p/618467#M181448</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-01-20T08:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreakers and Delimiters in PROC EXPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linebreakers-and-Delimiters-in-PROC-EXPORT/m-p/618497#M181465</link>
      <description>&lt;P&gt;You might need to write out this layout yourself. Something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_; 
 A=1; B=2; C=3;
 file  "%sysfunc(pathname(WORK))\t" dlm='09'x;
 put A '&amp;amp;' B '&amp;amp;' C '\\';
 run;
data CHECK;
 infile  "%sysfunc(pathname(WORK))\t" ;
 input;
 putlog '==&amp;gt;' _infile_ $hex36.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;CODE class=" language-sas"&gt;==&amp;gt;&lt;/CODE&gt;31092632092633095C5C&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 11:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linebreakers-and-Delimiters-in-PROC-EXPORT/m-p/618497#M181465</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-01-20T11:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreakers and Delimiters in PROC EXPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linebreakers-and-Delimiters-in-PROC-EXPORT/m-p/618698#M181528</link>
      <description>&lt;P&gt;Or:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_; 
 A=1; B=2; C=3; _='&amp;amp;';
 file  "%sysfunc(pathname(WORK))\t" dlm='09'x;
 put A _ B _ C '\\';
 run;
data T;
 infile  "%sysfunc(pathname(WORK))\t" ;
 input;
 putlog '==&amp;gt;' _infile_ $hex36.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;==&amp;gt;&lt;STRONG&gt;31&lt;/STRONG&gt;092609&lt;STRONG&gt;32&lt;/STRONG&gt;092609&lt;STRONG&gt;33&lt;/STRONG&gt;095C5C&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 20:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linebreakers-and-Delimiters-in-PROC-EXPORT/m-p/618698#M181528</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-01-20T20:50:06Z</dc:date>
    </item>
  </channel>
</rss>

