<?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: what is the memtype value of a template store? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896570#M82971</link>
    <description>Thank you Rheinhard</description>
    <pubDate>Sat, 30 Sep 2023 15:53:21 GMT</pubDate>
    <dc:creator>xxformat_com</dc:creator>
    <dc:date>2023-09-30T15:53:21Z</dc:date>
    <item>
      <title>what is the memtype value of a template store?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896554#M82966</link>
      <description>&lt;P&gt;I was wondering what is the value of memtype to designate a template store?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, I can be really specific and delete a store if no other sas file has the same name using a delete statement&lt;/P&gt;
&lt;P&gt;or delete all the sas files but the ones named in a save statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if I know the value of memtype= in proc datasets for a store, I could delete all the stores whatever their name using the kill option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Program 1 : creating in the proejct library a catalog, a dataset, a view and a style in a store&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname project "...";

proc format lib=project;
   value $sex 'M'='Male' F='Female';
run;

data project.class;
    set sashelp.class (keep=name age sex);
run;

data project.vclass / view=project.vclass;
    set sashelp.class (keep=name age sex);
run;

proc template;
    define style styles.pearl2 / store=project.classpink;
	    parent = styles.pearl;
	    class header / backgroundcolor = pink;
    end;
run;

libname project clear;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Program 2&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname project "...";

*deleting the style in the store;
proc template ;
    delete styles.pearl2 / store=project.classpink;
run;
quit;

*test 1;
proc datasets lib=project memtype=all kill;
run;
quit;

*test 2;
proc datasets lib=project nolist;
    delete classpink / memtype=all; 
    run;
quit;

*test 3;
proc datasets lib=project nolist;
    save class   / memtype=data;
    save vclass  / memtype=view;
    save formats / memtype=cat;
    run;
quit;

libname project clear;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 Sep 2023 09:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896554#M82966</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2023-09-30T09:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: what is the memtype value of a template store?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896556#M82967</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The memtype of item stores is ITEMSTOR. This includes&amp;nbsp;template stores, but also other sorts of item stores (e.g., from &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_introcom_sect068.htm" target="_blank" rel="noopener"&gt;statistical procedures&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2023 10:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896556#M82967</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-09-30T10:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: what is the memtype value of a template store?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896558#M82968</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The model item stores that are generated by the STORE statement in a statistical or machine learning procedure are CATALOGs.&lt;BR /&gt;(Not sure about template stores , but I would think they are also catalogs ... or entries in a catalog)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods exclude all;
proc orthoreg data=AgWeight;
   class Instrument;
   model AgWeight = Instrument;
   ods output ANOVA         = OrthoregANOVA
              FitStatistics = OrthoregFitStat;
   STORE OUT=work.MyOrthoRegStore / LABEL='Atomic Weight of Silver by Two Different Instruments';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would deal with them using PROC CATALOG for Copying, Deleting, and Moving.&lt;BR /&gt;&lt;BR /&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2023 11:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896558#M82968</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-09-30T11:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: what is the memtype value of a template store?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896559#M82969</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The model item stores that are generated by the STORE statement in a statistical or machine learning procedure are CATALOGs.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Is this true for SAS Viya? Your PROC ORTHOREG code submitted to my traditional Windows SAS 9.4M5 (with SAS/STAT 14.3) creates a file&amp;nbsp;myorthoregstore.sas7bitm (not: .sas7bcat), PROC DATASETS lists it as a library member of type ITEMSTOR (not: CATALOG), trying to copy it with PROC CATALOG yields the error message "Catalog WORK.MYORTHOREGSTORE does not exist" and a second attempt after renaming the file to&amp;nbsp;myorthoregstore.sas7bcat fails with "ERROR: Unable to read header information for catalog WORK.MYORTHOREGSTORE" -- indicating that the file structure is not that of a catalog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, the documentation I linked to in my previous post says:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The STORE statement requests that the procedure save the context and results of the statistical analysis into an item store.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sat, 30 Sep 2023 13:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896559#M82969</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-09-30T13:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: what is the memtype value of a template store?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896561#M82970</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are right , I was wrong.&lt;BR /&gt;I am using&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;112  %PUT &amp;amp;=sysvlong;
SYSVLONG=9.04.01M8P011823&lt;/PRE&gt;
&lt;P&gt;and when I gave the command "dir work" this morning (after running the proc orthoreg) ... I could see my model item store listed as a catalog. It was empty though (with very small file size) and that made me suspicious.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I cannot reproduce that behavior right now. Probably I did sthg. wrong this morning.&lt;BR /&gt;When I run the code now and I&amp;nbsp;enter the command "dir work", I do not see my model item store at all.&lt;BR /&gt;But if I go to the workspace path on my local file system, I see it there as&amp;nbsp;myorthoregstore.sas7bitm.&lt;BR /&gt;&lt;BR /&gt;Sorry for the confusion,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2023 13:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896561#M82970</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-09-30T13:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: what is the memtype value of a template store?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896570#M82971</link>
      <description>Thank you Rheinhard</description>
      <pubDate>Sat, 30 Sep 2023 15:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-the-memtype-value-of-a-template-store/m-p/896570#M82971</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2023-09-30T15:53:21Z</dc:date>
    </item>
  </channel>
</rss>

