<?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 can I extract SAS licence key info via REXX? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575562#M12889</link>
    <description>Can you place the name of the program to execute in the TSO command?&lt;BR /&gt;SAS MYFILE.SAS&lt;BR /&gt;Then SAS should write the LOG to a file named MYFILE.LOG.&lt;BR /&gt;In CMS we could do that.&lt;BR /&gt;</description>
    <pubDate>Mon, 22 Jul 2019 19:54:37 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-07-22T19:54:37Z</dc:date>
    <item>
      <title>How can I extract SAS licence key info via REXX?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575424#M12859</link>
      <description>&lt;P&gt;I am not a SAS user. I am a MF automation guy, currently using OPSMVS. I need to write a rexx exec that can get the expiration date for the current license key for the SAS base product so that I can verify that it is valid.&lt;/P&gt;&lt;P&gt;The 2 choices I have right now are to run a batch job (which I will not get the security authorization to do) or use the TSO SAS interface to submit:&lt;/P&gt;&lt;P&gt;PROC SETINIT:&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;I have not been able to figure out how to do this in rexx yet. Does anyone have an example for rexx code that will work?&lt;/P&gt;&lt;P&gt;Thanks in advance for our help.&lt;/P&gt;&lt;P&gt;Rafe Aalderink&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 15:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575424#M12859</guid>
      <dc:creator>Rafe1</dc:creator>
      <dc:date>2019-07-22T15:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract SAS licence key info via REXX?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575485#M12869</link>
      <description>&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Welcome Rafe, &amp;nbsp; I don't remember much about REXX but it seems like you could stack the SAS statements you want to run, then call SAS to read the commands in the stack and pass the info back perhaps through andenvironment variable.&lt;/SPAN&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/282407"&gt;@Rafe1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am not a SAS user. I am a MF automation guy, currently using OPSMVS. I need to write a rexx exec that can get the expiration date for the current license key for the SAS base product so that I can verify that it is valid.&lt;/P&gt;
&lt;P&gt;The 2 choices I have right now are to run a batch job (which I will not get the security authorization to do) or use the TSO SAS interface to submit:&lt;/P&gt;
&lt;P&gt;PROC SETINIT:&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;I have not been able to figure out how to do this in rexx yet. Does anyone have an example for rexx code that will work?&lt;/P&gt;
&lt;P&gt;Thanks in advance for our help.&lt;/P&gt;
&lt;P&gt;Rafe Aalderink&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 17:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575485#M12869</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-07-22T17:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract SAS licence key info via REXX?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575535#M12881</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some very general ideas about how it might be done conceptually. It's the actual codding that's the stumbling block. I've spent too much time already trying different combinations of address statements and TSO commands and parms and I'm hoping someone somewhere has already done this and is willing to share how they pulled it off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 18:45:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575535#M12881</guid>
      <dc:creator>Rafe1</dc:creator>
      <dc:date>2019-07-22T18:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract SAS licence key info via REXX?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575538#M12882</link>
      <description>&lt;P&gt;Write it to a file and read it back in?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename setinit 'somefile.your.rexx.can.read';
proc printto log=setinit; run;
proc setinit; run;
proc printto log=log; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Jul 2019 19:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575538#M12882</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-22T19:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract SAS licence key info via REXX?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575548#M12884</link>
      <description>&lt;P&gt;Maybe this will be helpful&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hosto390/61886/HTML/default/viewer.htm#mvs-ifaces-rexx.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hosto390/61886/HTML/default/viewer.htm#mvs-ifaces-rexx.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us some code.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 19:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575548#M12884</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-07-22T19:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract SAS licence key info via REXX?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575550#M12886</link>
      <description>&lt;P&gt;Hi Tom. I'm guessing that's the SAS code. I need the rexx code that will issue those commands and get the output back either in memory that I can work with or in a dataset.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 19:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575550#M12886</guid>
      <dc:creator>Rafe1</dc:creator>
      <dc:date>2019-07-22T19:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract SAS licence key info via REXX?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575560#M12888</link>
      <description>&lt;P&gt;I've tried a lot of things but I don't have anything that works at all. Nothing worth sharing. That's why I'm hoping someone has done this and can just say "Here's what you need to do."&lt;/P&gt;&lt;P&gt;I can have a rexx with&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADDRESS TSO "%SAS",&amp;nbsp;&lt;/P&gt;&lt;P&gt;but that just starts a SAS session within my own TSO session. Then I need to exit it manually so that the rexx exec can finish.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to read the doc in the link and see if that helps me.&lt;/P&gt;&lt;P&gt;Thanks for posting it. I don't know why it didn't come up in my searches.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 19:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575560#M12888</guid>
      <dc:creator>Rafe1</dc:creator>
      <dc:date>2019-07-22T19:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract SAS licence key info via REXX?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575562#M12889</link>
      <description>Can you place the name of the program to execute in the TSO command?&lt;BR /&gt;SAS MYFILE.SAS&lt;BR /&gt;Then SAS should write the LOG to a file named MYFILE.LOG.&lt;BR /&gt;In CMS we could do that.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jul 2019 19:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575562#M12889</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-22T19:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract SAS licence key info via REXX?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575564#M12890</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=hosto390&amp;amp;docsetTarget=n0ctc6y55dal76n1vrlo64uw9p4g.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=hosto390&amp;amp;docsetTarget=n0ctc6y55dal76n1vrlo64uw9p4g.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 19:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575564#M12890</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-22T19:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract SAS licence key info via REXX?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575568#M12891</link>
      <description>&lt;P&gt;That may be possible. I don't know anything about SAS, but I may be able to find someone who can put that together, and then I can have the rexx run it. It would have been much easier if the license key info were in a flat file that I could just read.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 20:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575568#M12891</guid>
      <dc:creator>Rafe1</dc:creator>
      <dc:date>2019-07-22T20:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract SAS licence key info via REXX?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575571#M12892</link>
      <description>&lt;P&gt;Put this code into one text file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc setinit; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Follow the instructions for how to call SAS passing in the name of the program to run and the name of the file to store the SAS log.&lt;/P&gt;
&lt;P&gt;Then write some REXX code to parse the LOG and pull out the information you need.&amp;nbsp; Look for the line that looks like this:&lt;/P&gt;
&lt;PRE&gt;Expiration:   31OCT2019.
&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Jul 2019 20:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575571#M12892</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-22T20:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract SAS licence key info via REXX?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575765#M12922</link>
      <description>&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;When you say "Follow the instructions." are you referring to "Invoking a REXX Exec" on the SAS Interface to REXX page? Unless I'm mis-understanding it, that's for running rexx under SAS, which is not what I need to do. I need to have OPSMVS run the rexx exec. I believe that means that I need to allocate the SAS environment in the exec somehow so that I can issue the SAS commands, or call the one-line program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or were you referring to some other instructions somewhere?&lt;/P&gt;&lt;P&gt;I've seen the output from the PROC SETINIT command. I'll have no problem parsing it for what I need.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 12:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-extract-SAS-licence-key-info-via-REXX/m-p/575765#M12922</guid>
      <dc:creator>Rafe1</dc:creator>
      <dc:date>2019-07-23T12:11:11Z</dc:date>
    </item>
  </channel>
</rss>

