<?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: Browse a large format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390340#M93608</link>
    <description>&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Browse a SAS data set is no problem&amp;nbsp;but how about SAS format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2017 16:52:31 GMT</pubDate>
    <dc:creator>GeorgeSAS</dc:creator>
    <dc:date>2017-08-23T16:52:31Z</dc:date>
    <item>
      <title>Browse a large format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/389973#M93536</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/SAS-large-format/m-p/386954#M48990" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/SAS-large-format/m-p/386954#M48990&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;Additional to the above question,May I ask how to&lt;STRONG&gt; &lt;U&gt;browse&lt;/U&gt;&lt;/STRONG&gt;&amp;nbsp;a large SAS format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also,&amp;nbsp;SAS format stored like a html file,I don't know how to split it as we split SAS dataset:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jjj.png" style="width: 567px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14622iD242ABC17F0D9FE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="jjj.png" alt="jjj.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can we store SAS format to another type?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 19:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/389973#M93536</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-08-23T19:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Browse a large format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390063#M93537</link>
      <description>&lt;P&gt;I am paraphrasing your questions hoping that I am correctly interpreting what you are saying.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you look at a large data set? Sure. &amp;nbsp;What do you want to see? &amp;nbsp;You certainly don't want to display&amp;nbsp;the entire thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use PROC PRINT with OBS= and FIRSTOBS= to see subsets. &amp;nbsp;Or use a WHERE clause to see other subsets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=sashelp.iris(firstobs=10 obs=20); run;&lt;BR /&gt;proc print data=sashelp.iris(where=(species='Setosa')); run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use proc freq or proc summary. &amp;nbsp;There are lots of ways to look.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why is html the default destination in some situations? &amp;nbsp;Well it seems like a reasonable choice. &amp;nbsp;Yes you can use ODS destination statements to change it to listing, pdf, rtf, or others. &amp;nbsp;I hope this helps and that I am understanding what you are asking.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 23:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390063#M93537</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-08-22T23:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Browse a large format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390282#M93591</link>
      <description>&lt;P&gt;This time will you show some of the actual code youi are running and any of the results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is very frustrating to see the same question especially when you do not include the information from questions asked in earlier basically identical questions such as 1) this is an OLD format (supposedly) that you do not have the code or data set that generated the format; is running on a mainframe; that you get error messages related to memory limits; that you either have not/will not or cannot get more memory allocated to the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you run the previously suggested code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;proc&lt;/FONT&gt; &lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;catalog&lt;/FONT&gt; &lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;catalog&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;=lib.formats;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;contents&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;run&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;on the catalog containing the format?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;Can you share the result?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;SAS Formats are &lt;STRONG&gt;NOT &lt;/STRONG&gt;stored in HTML files, they are stored in catalogs which is a SAS specific file format. If you have an html file then it is not a catalog but may have been exported in which case you really have to show the entire code of what you may have attempted.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390282#M93591</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-23T14:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Browse a large format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390340#M93608</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Browse a SAS data set is no problem&amp;nbsp;but how about SAS format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 16:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390340#M93608</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-08-23T16:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Browse a large format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390352#M93611</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10531"&gt;@GeorgeSAS&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Browse a SAS data set is no problem&amp;nbsp;but how about SAS format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You mentioned:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;Also, why SAS format are stored as html type file?&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SAS does not store formats in html. SAS stores formats in catalogs.&lt;/P&gt;
&lt;P&gt;Run this code:&lt;/P&gt;
&lt;P&gt;Proc format library=work;&lt;/P&gt;
&lt;P&gt;value junk&lt;/P&gt;
&lt;P&gt;1 = 'value'&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look in the WORK library. You will see a catalog named Formats.If you open that catalog, or run the proc catalog code in another part of this thread, you will see the format Junk in that catalog.&lt;/P&gt;
&lt;P&gt;If you have something in HTML it was exported or created by someone and is no longer a "format" but an html file.&lt;/P&gt;
&lt;P&gt;Reading from html is possible to create a data set but will depend on the actual content of the html.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 17:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390352#M93611</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-23T17:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Browse a large format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390356#M93613</link>
      <description>&lt;PRE&gt;filename ffout .;
proc catalog catalog=lib.formats;
contents FILE=ffout;
run;
quit;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is result you want to see:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name Type Description Create Date Modify Date&lt;/P&gt;
&lt;P&gt;LARGEJK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FORMATC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 21Aug17:17:27:43 &amp;nbsp; &amp;nbsp;21Aug17:17:27:43&lt;/P&gt;
&lt;P&gt;Total number of entries: 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to combine this topic with the old one, the reason I open this new one is I don't want the question jump to much that confuse you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can browse SAS format only within a html style output. is there any other way to browse a format? I can't browse the format(LARGEJK) ,it is too large.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no firstobs=&amp;nbsp; obs= option for a format.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jjj.png" style="width: 567px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14621i8CBF4107338C0326/image-size/large?v=v2&amp;amp;px=999" role="button" title="jjj.png" alt="jjj.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 17:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390356#M93613</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-08-23T17:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Browse a large format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390364#M93617</link>
      <description>&lt;P&gt;If I can rephrase the question... Let me know if I've got it wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose you have a user-defined SAS format with lots of rules (thousands or millions). &amp;nbsp;How can you see a listing of all of those rules? &amp;nbsp;If you use the CATALOG window in Base SAS and double-click on a SAS format entry, SAS issues something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format fmtlib lib=dbmlnx.formats; 
 select bigfmt; 
run; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This produces ODS output -- HTML by default -- that can be impossible to load/view due to its size.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could workaround by defining your own ODS destination and writing your own code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
options ps=max;
ods listing file="c:\temp\bigformat.lst"; 
proc format fmtlib lib=dbmlnx.formats; 
 select bigfmt; 
run; 
ods listing close; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This creates a text file that you can open in your favorite text editor that handles large files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can use PROC FORMAT CTLOUT= to create a SAS data set version of the format, and then view that in VIEWTABLE or the EG table viewer or SAS Studio -- all of which can handle data sets with millions of rows.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 18:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390364#M93617</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-08-23T18:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Browse a large format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390402#M93641</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;
&lt;PRE&gt;%macro makefmt;
Proc format library=work;
value j3unk
%do i=1 %to 100;
&amp;amp;i. = "value&amp;amp;i."
%end;
;
run;
%mend makefmt;
%makefmt;
ods _all_ close;
options ps=max;
ods listing file="c:\temp\bigformat" ; 
proc format fmtlib lib=work.formats; 
select j3unk; /*obs=10 only works for sas dataset;SAS format can't be splitted as sas dataset*/
run; 
ods listing;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 19:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Browse-a-large-format/m-p/390402#M93641</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-08-23T19:58:16Z</dc:date>
    </item>
  </channel>
</rss>

