<?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: How to give all entry names at atime in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717310#M221801</link>
    <description>have a look at the CONTENTS statement of the CATALOG Procedure  at &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=p098gxyhcmikjdn134dvlhryd4ju.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=p098gxyhcmikjdn134dvlhryd4ju.htm&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Sat, 06 Feb 2021 15:34:47 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2021-02-06T15:34:47Z</dc:date>
    <item>
      <title>How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717309#M221800</link>
      <description>&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;I have catalog contains 5 variables....AEACN,AETERM,AESTDY,AEBODSYS,AESEV and its description&lt;/P&gt;&lt;P&gt;So Im trying to create dataset from catalog&amp;nbsp; should contain values of 5 variables. when I run below program it gives only AEACN value.so my doubt is instead of giving one entry name what command should we use for getting all desciptions of varibles to a new dataset. Can anyone please help me out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename mycat catalog "mine.one.AEACN.SOURCE";&lt;/P&gt;&lt;P&gt;data aeacn;&lt;BR /&gt;infile mycat end=eof length=len;&lt;BR /&gt;input @1 Description $varying32767. len;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 15:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717309#M221800</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2021-02-06T15:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717310#M221801</link>
      <description>have a look at the CONTENTS statement of the CATALOG Procedure  at &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=p098gxyhcmikjdn134dvlhryd4ju.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=p098gxyhcmikjdn134dvlhryd4ju.htm&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Feb 2021 15:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717310#M221801</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2021-02-06T15:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717313#M221804</link>
      <description>&lt;P&gt;So can I use dataset name as entryname insteadd of AEACN&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 15:47:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717313#M221804</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2021-02-06T15:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717397#M221841</link>
      <description>&lt;P&gt;A catalog does NOT contain variables,&amp;nbsp;&lt;EM&gt;datasets&lt;/EM&gt; contain variables.&lt;/P&gt;
&lt;P&gt;Catalogs contain&amp;nbsp;&lt;EM&gt;entries&lt;/EM&gt; of different types (source, format, macro, to name a few).&lt;/P&gt;
&lt;P&gt;In your code, you are addressing a single entry of type SOURCE, and try to read it as a text file.&lt;/P&gt;
&lt;P&gt;What do you intend to do with a dataset containing code in a character variable?&lt;/P&gt;
&lt;P&gt;Please describe your intentions more clearly.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 13:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717397#M221841</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-02-07T13:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717398#M221842</link>
      <description>#KurtBremser Yes that Catalog contains different entries (memname,type,format,name, source)&lt;BR /&gt;The name have AEACN, AEDECODE,AESTDY,AESEV...&lt;BR /&gt;&lt;BR /&gt;When I ran above code it creates variable given in input statement and that variable contains description of AEACN....&lt;BR /&gt;(&lt;BR /&gt;ex..&lt;BR /&gt;Name Description&lt;BR /&gt;AEACN other action taken&lt;BR /&gt;)&lt;BR /&gt;If I ran program it would be value of description with new variable given in input statement..&lt;BR /&gt;&lt;BR /&gt;Hope you understand my question..</description>
      <pubDate>Sun, 07 Feb 2021 14:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717398#M221842</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2021-02-07T14:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717407#M221850</link>
      <description>It seems unlikely, but is &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/282134"&gt;@sasuser123123&lt;/a&gt; trying to read all these source entries in one data step? Can I assume the names  ( AEACN,AETERM,AESTDY,AEBODSYS,AESEV ) are each source entries?  And that sasuser123123 wants contents of all streamed to a file?&lt;BR /&gt;I expect there are better ways to export selected catalogs entries   a bit like the SOURCE Procedure would export from a program library in a pds on mvs and the BUILD Procedure would print selected catalog source entries (or all text orrc) to a text file.&lt;BR /&gt;For these environments we have constructed export solutions with SQL INTO : mVar  separated by "syntax as needed" for the appropriate catalog entries from the sashelp.vcatalg dictionary table. I expect there are examples in the archives. So I'm not invented a new example for such uncertain definition of requirements&lt;BR /&gt;The original requirement is still unclear.</description>
      <pubDate>Sun, 07 Feb 2021 15:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717407#M221850</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2021-02-07T15:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717439#M221874</link>
      <description>&lt;P&gt;Why the heck are you using source entries in catalogs?&lt;/P&gt;
&lt;P&gt;Anyway just use the FILEVAR= option on the INFILE statement to control which member you want to read from the catalog.&lt;/P&gt;
&lt;P&gt;First let's make some SOURCE entries in a catalog to have an example to work with.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  length memname $32 catalog $200 ;
  do memname='AEACN','AETERM','AESTDY' ;
    catalog=cats('work.somecat.',memname,'.SOURCE');
    file mycat catalog filevar=catalog ;
    put memname= ;
  end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now we can use the same DO loop (or an input dataset if you want) to read all of those entries.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data all;
  length memname $32 catalog $200 ;
  do memname='AEACN','AETERM','AESTDY' ;
    catalog=cats('work.somecat.',memname,'.SOURCE');
    infile mycat catalog filevar=catalog length=len end=eof;
    do row=1 by 1 while(not eof);
      input @1 Description $varying32767. len;
      output;
    end;
  end;
  stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Resullt:&lt;/P&gt;
&lt;PRE&gt;Obs    memname    row     Description

 1     AEACN       1     memname=AEACN
 2     AETERM      1     memname=AETERM
 3     AESTDY      1     memname=AESTDY


&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Feb 2021 19:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717439#M221874</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-07T19:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717441#M221875</link>
      <description>&lt;P&gt;You can query DICTIONARY.CATALOGS (or SASHELP.VCATALG) to get the list of the source objects in a particular catalog.&lt;/P&gt;
&lt;P&gt;So now you program can look something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data all;
  set sashelp.vcatalg;
  where libname='WORK' and memname='SOMECAT' and objtype='SOURCE';
  length name $132 ;
  name = catx('.',libname,memname,objname,objtype);
  infile src catalog filevar=name end=eof;
  do line=1 by 1 while(not eof);
    input;
    description=_infile_;
    output;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Feb 2021 19:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717441#M221875</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-07T19:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717491#M221897</link>
      <description>#Tom But my expected result is not like that. In description it should have corresponding value of AEACN like&lt;BR /&gt;DESCRIPTION&lt;BR /&gt;Other action taken</description>
      <pubDate>Mon, 08 Feb 2021 05:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717491#M221897</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2021-02-08T05:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717497#M221899</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/282134"&gt;@sasuser123123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;#Tom But my expected result is not like that. In description it should have corresponding value of AEACN like&lt;BR /&gt;DESCRIPTION&lt;BR /&gt;Other action taken&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How could I possibly re-create the contents of the binary SAS catalogs on your computer with an example program?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure you actually have SOURCE catalog entries that you want to read?&amp;nbsp; Your expected output just looks like a variable label, which is not something that would normally be stored in a source catalog.&amp;nbsp; Instead you could just get that from running proc content on the dataset that contains the AEACN variable.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 06:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717497#M221899</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-08T06:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717498#M221900</link>
      <description>No actually it's not variable label it's variable (description) value present in catalog</description>
      <pubDate>Mon, 08 Feb 2021 06:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717498#M221900</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2021-02-08T06:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717500#M221901</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/282134"&gt;@sasuser123123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;No actually it's not variable label it's variable (description) value present in catalog&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So run the code I posted on your catalog(s) and see what it reads.&amp;nbsp; If it does not look right then just open SAS's Display Manager and look at the source entries yourself and see what is in them.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 06:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717500#M221901</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-08T06:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717506#M221904</link>
      <description>#Tom I ran that code so got output&lt;BR /&gt;Memname row Description&lt;BR /&gt;AEACN 1 memname=AEACN&lt;BR /&gt;&lt;BR /&gt;but my intention is not like that it should be&lt;BR /&gt;&lt;BR /&gt;Memname row Description&lt;BR /&gt;AEACN 1 other action taken&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Feb 2021 07:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717506#M221904</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2021-02-08T07:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717560#M221926</link>
      <description>&lt;P&gt;You seem to have run the code I posted without adapting it to your situation. Including running the data step I had to CREATE some example SOURCE catalogs entries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Modify the step I posted that READS from the catalog entries so that points to your LIBNAME and MEMNAME, not the catalog that my little example data step created.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 13:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717560#M221926</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-08T13:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to give all entry names at atime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717661#M221964</link>
      <description>&lt;P&gt;The description of a catalog entry is stored in column objdesc of sashelp.vcatalg. To set it, you need to use PROC CATALOG (MODIFY statement).&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 17:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-give-all-entry-names-at-atime/m-p/717661#M221964</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-02-08T17:23:29Z</dc:date>
    </item>
  </channel>
</rss>

