<?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: Varying DESCRIBE line length in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354463#M64109</link>
    <description>&lt;P&gt;Why do you need describe? &amp;nbsp;The two proc reports I gave you, SASHELP.VTABLE, SASHELP.VCOLUMN, contain the metadata of all the tables and columns - this is the SAS version of describe. &amp;nbsp;You can get the information directly from there.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2017 13:17:54 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-04-28T13:17:54Z</dc:date>
    <item>
      <title>Varying DESCRIBE line length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354450#M64106</link>
      <description>&lt;P&gt;I am&amp;nbsp; doing&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; describe table &amp;amp;lib..&amp;amp;mem&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.. where I write the log the log to a file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let logfile=C:\SAS_table.log;&lt;/P&gt;&lt;P&gt;proc printto log="&amp;amp;logfile" new;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other day,&amp;nbsp;it output a full line like this&amp;nbsp; (no new lines)&lt;/P&gt;&lt;P&gt;create table SASHELP.BURROWS( label='Isopod Burrow Locations and Covariates from an Israeli Desert' bufsize=65536 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Today, it is breaking it into 2 lines:&amp;nbsp;&amp;nbsp; where there is a new line&amp;nbsp; before&amp;nbsp; 'bufsize=65536 )'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;create table SASHELP.BURROWS( label='Isopod Burrow Locations and Covariates from an Israeli Desert'&lt;BR /&gt;bufsize=65536 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made no changes to the code and no one else has made system changes.&lt;/P&gt;&lt;P&gt;I tried using&amp;nbsp;&amp;nbsp; LINESIZE=MAX, but has no effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to make this a fixed length?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 13:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354450#M64106</guid>
      <dc:creator>dougcrites</dc:creator>
      <dc:date>2017-04-28T13:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Varying DESCRIBE line length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354454#M64107</link>
      <description>&lt;P&gt;I would recommend that, whenever you need output, to write a report and put that into a file. &amp;nbsp;Log/Output window, they are plain text and don't have the necessary functionality to create nice outputs.&lt;/P&gt;
&lt;P&gt;You can do it simply by:&lt;/P&gt;
&lt;PRE&gt;proc report data=sashelp.vtable nowd;
  columns _all_;  /* You can choose what columns */
run;

proc report data=sashelp.vcolumns nowd;
  columns _all_;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Apr 2017 12:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354454#M64107</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-28T12:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Varying DESCRIBE line length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354459#M64108</link>
      <description>&lt;P&gt;From what I understand, the DESCRIBE output always goes to the log, so I don't know any other way to direct it to a 'report'.&amp;nbsp; (I'm still quite new with SAS)..&amp;nbsp;&amp;nbsp; The best I was able to do to retain this info, was to divert the log to a file.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 13:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354459#M64108</guid>
      <dc:creator>dougcrites</dc:creator>
      <dc:date>2017-04-28T13:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Varying DESCRIBE line length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354463#M64109</link>
      <description>&lt;P&gt;Why do you need describe? &amp;nbsp;The two proc reports I gave you, SASHELP.VTABLE, SASHELP.VCOLUMN, contain the metadata of all the tables and columns - this is the SAS version of describe. &amp;nbsp;You can get the information directly from there.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 13:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354463#M64109</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-28T13:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Varying DESCRIBE line length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354468#M64110</link>
      <description>&lt;P&gt;We could probably work with the table metadata like that... but for views,&amp;nbsp; the describe gives us the definition of the views which suits our purposes. I can't get that with a report of VVIEW.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 13:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354468#M64110</guid>
      <dc:creator>dougcrites</dc:creator>
      <dc:date>2017-04-28T13:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Varying DESCRIBE line length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354477#M64111</link>
      <description>&lt;P&gt;I think your likely stuck with the output the way it is then, unless you want to re-direct it into a datastep and process it that way. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 13:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354477#M64111</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-28T13:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Varying DESCRIBE line length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354479#M64112</link>
      <description>&lt;P&gt;OK, thanks for your quick responses.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 13:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354479#M64112</guid>
      <dc:creator>dougcrites</dc:creator>
      <dc:date>2017-04-28T13:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Varying DESCRIBE line length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354482#M64113</link>
      <description>&lt;P&gt;It should work to change the LS option. Try this example.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data BURROWS( label='Isopod Burrow Locations and Covariates from an Israeli Desert' bufsize=65536 ) ;
 x=1;
run;

filename log1 temp ;

proc printto log=log1 new ; run;
proc sql ;
options ls=80 ;
  describe table work.burrows;
options ls=132 ;
  describe table work.burrows;
quit;
proc printto log=log ; run;
data _null_;
  infile log1 ;
  input;
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results&lt;/P&gt;
&lt;PRE&gt;1511  proc sql ;
1512  options ls=80 ;
1513    describe table work.burrows;
NOTE: SQL table WORK.BURROWS was created like:

create table WORK.BURROWS( label='Isopod Burrow Locations and Covariates from
an Israeli Desert' bufsize=65536 )
  (
   x num
  );

1514  options ls=132 ;
1515    describe table work.burrows;
NOTE: SQL table WORK.BURROWS was created like:

create table WORK.BURROWS( label='Isopod Burrow Locations and Covariates from an Israeli Desert' bufsize=65536 )
  (
   x num
  );

1516  quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


1517  proc printto log=log ; run;
NOTE: 33 records were read from the infile LOG1.
&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Apr 2017 14:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354482#M64113</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-28T14:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Varying DESCRIBE line length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354486#M64114</link>
      <description>&lt;P&gt;Tom, that worked!&amp;nbsp; Actually, I had tried setting the LS&amp;nbsp; option, but I did it higher in the program,&amp;nbsp; where it obviously did not affect this particular code.&amp;nbsp;&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 14:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Varying-DESCRIBE-line-length/m-p/354486#M64114</guid>
      <dc:creator>dougcrites</dc:creator>
      <dc:date>2017-04-28T14:21:51Z</dc:date>
    </item>
  </channel>
</rss>

