<?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: SPM Batch Model Facility, %SPMBMF in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SPM-Batch-Model-Facility-SPMBMF/m-p/63570#M13811</link>
    <description>hopefully, this isn't another example of sas solutions using proc import &lt;BR /&gt;
 (not only not a good idea &lt;BR /&gt;
 - I think proc import can only be used in an amateur/ad-hoc/interactive environment where importing difficulties can be easily recognised by the user who is very familiar with all her/his data and can solve any problem - at the data-end &lt;BR /&gt;
 (soap-off) )&lt;BR /&gt;
Without access to the SPMBPF macro I would only recommend that you refer the problem to Technical/Customer Support.&lt;BR /&gt;
 &lt;BR /&gt;
To generate GUIDs is not very hard, just combine enough identifiers, for example:&lt;BR /&gt;
you  (&amp;amp;sysuserID )&lt;BR /&gt;
application (processID ?)&lt;BR /&gt;
timestamp %sysfunc(datetime(), best20.)&lt;BR /&gt;
%sysindex &lt;BR /&gt;
Of course, your application environment may already have defined what a GUID can contain. If so follow the GUIDance  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;BR /&gt;
 &lt;BR /&gt;
good luck&lt;BR /&gt;
peterC</description>
    <pubDate>Fri, 13 Aug 2010 13:17:12 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2010-08-13T13:17:12Z</dc:date>
    <item>
      <title>SPM Batch Model Facility, %SPMBMF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SPM-Batch-Model-Facility-SPMBMF/m-p/63569#M13810</link>
      <description>Everybody Hi, I have a question - does anybody ever used this macro? The only documentation i found was inside the .sas file&lt;BR /&gt;
&lt;BR /&gt;
My task - load to SMP new elements from excel, and as support says, I can do this with the help of this macro, but when i try to use it, nothing happens, no errors in log.&lt;BR /&gt;
&lt;BR /&gt;
By analizing the macro i found out that its generate values for other macro - sendevnt, but I cant find the place where all that macros load my data (from .csv) to SPM.&lt;BR /&gt;
&lt;BR /&gt;
If anybody have experience with the work of above will bw glad to see some instructions... or may be some documentation to read&lt;BR /&gt;
&lt;BR /&gt;
Another micro question - how to generate Globally unique identifiers (GUIDs) - may be I can load all data myself, but cant make GUID.&lt;BR /&gt;
&lt;BR /&gt;
Best regards</description>
      <pubDate>Fri, 13 Aug 2010 10:24:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SPM-Batch-Model-Facility-SPMBMF/m-p/63569#M13810</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-13T10:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: SPM Batch Model Facility, %SPMBMF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SPM-Batch-Model-Facility-SPMBMF/m-p/63570#M13811</link>
      <description>hopefully, this isn't another example of sas solutions using proc import &lt;BR /&gt;
 (not only not a good idea &lt;BR /&gt;
 - I think proc import can only be used in an amateur/ad-hoc/interactive environment where importing difficulties can be easily recognised by the user who is very familiar with all her/his data and can solve any problem - at the data-end &lt;BR /&gt;
 (soap-off) )&lt;BR /&gt;
Without access to the SPMBPF macro I would only recommend that you refer the problem to Technical/Customer Support.&lt;BR /&gt;
 &lt;BR /&gt;
To generate GUIDs is not very hard, just combine enough identifiers, for example:&lt;BR /&gt;
you  (&amp;amp;sysuserID )&lt;BR /&gt;
application (processID ?)&lt;BR /&gt;
timestamp %sysfunc(datetime(), best20.)&lt;BR /&gt;
%sysindex &lt;BR /&gt;
Of course, your application environment may already have defined what a GUID can contain. If so follow the GUIDance  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;BR /&gt;
 &lt;BR /&gt;
good luck&lt;BR /&gt;
peterC</description>
      <pubDate>Fri, 13 Aug 2010 13:17:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SPM-Batch-Model-Facility-SPMBMF/m-p/63570#M13811</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-08-13T13:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: SPM Batch Model Facility, %SPMBMF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SPM-Batch-Model-Facility-SPMBMF/m-p/63571#M13812</link>
      <description>in SPM GUID have the following form - 082ad130-0a08-0305-01bb-3453da1ad2cb.&lt;BR /&gt;
I have no idea if its fully random or not, but if its random I made macro to generate it -&lt;BR /&gt;
%macro gen(table=,rows=,seed=);&lt;BR /&gt;
	%macro mini;&lt;BR /&gt;
		%local src;&lt;BR /&gt;
		%let src=1234567890abcdefghijklmnopqrstuvwxyz_;&lt;BR /&gt;
&lt;BR /&gt;
		data tmp(keep=code);&lt;BR /&gt;
		 s="&amp;amp;seed";&lt;BR /&gt;
		 format code $36.;&lt;BR /&gt;
		 format temp1 $1.;&lt;BR /&gt;
		 retain code "";&lt;BR /&gt;
		 do _n_ = 1 to 37;&lt;BR /&gt;
		  if _n_ in (14,19,24,29) then do;&lt;BR /&gt;
		   code="-"||code;&lt;BR /&gt;
		  end; else do; &lt;BR /&gt;
&lt;BR /&gt;
		   do i=0 to i&amp;gt;=1;&lt;BR /&gt;
		    r1 = ranuni(s)*36;&lt;BR /&gt;
		    i=r1;&lt;BR /&gt;
		   end;&lt;BR /&gt;
		   temp1=substr("&amp;amp;src",i,1);&lt;BR /&gt;
		   code=temp1||code;&lt;BR /&gt;
		  end;&lt;BR /&gt;
		  *put _all_;&lt;BR /&gt;
		 end;&lt;BR /&gt;
		 call symput("temp2",code);&lt;BR /&gt;
		run;&lt;BR /&gt;
&lt;BR /&gt;
		data &amp;amp;table;&lt;BR /&gt;
		 set tmp &amp;amp;table;&lt;BR /&gt;
		run;&lt;BR /&gt;
	%mend;&lt;BR /&gt;
&lt;BR /&gt;
	data &amp;amp;table;&lt;BR /&gt;
	run;&lt;BR /&gt;
&lt;BR /&gt;
	data _null_;&lt;BR /&gt;
 	 do _n_=1 to &amp;amp;rows;&lt;BR /&gt;
	  call execute('%mini');&lt;BR /&gt;
 	 end;&lt;BR /&gt;
	run;	&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
%gen(table='gen',rows=10,seed=0);&lt;BR /&gt;
&lt;BR /&gt;
May be someone know any other variants of random generation?&lt;BR /&gt;
&lt;BR /&gt;
And I wait for people who worked with %SPMBMF, I need some youe experience pls)&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Fry

Message was edited by: Fry</description>
      <pubDate>Mon, 16 Aug 2010 05:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SPM-Batch-Model-Facility-SPMBMF/m-p/63571#M13812</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-16T05:36:57Z</dc:date>
    </item>
  </channel>
</rss>

