<?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 change Campaign Code sequence in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442749#M845</link>
    <description>&lt;P&gt;Thanks James.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have updated the sequence in MAMisc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Mar 2018 06:12:22 GMT</pubDate>
    <dc:creator>Rupasree</dc:creator>
    <dc:date>2018-03-06T06:12:22Z</dc:date>
    <item>
      <title>How to change Campaign Code sequence</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442370#M838</link>
      <description>Hello Everyone,&lt;BR /&gt;&lt;BR /&gt;I have a requirement, where campaign code should be  C+5 digit.&lt;BR /&gt;Right now the code in business context is set as C# which returns the campaign code as C1 and the requirement is to have campaign code as C0001 to C99999.&lt;BR /&gt;Where can I set the sequence as 00001 so it is incremented by 1.&lt;BR /&gt;&lt;BR /&gt;Seeking your help for the same.Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rupa</description>
      <pubDate>Mon, 05 Mar 2018 14:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442370#M838</guid>
      <dc:creator>Rupasree</dc:creator>
      <dc:date>2018-03-05T14:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Campaign Code sequence</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442380#M839</link>
      <description>&lt;P&gt;I would guess you know how to create a variable that increases by 1 each time, and the real question is how to keep the leading zeros.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need help creating a variable that increases by 1, you'll have to show more of the logic ... when should it increase by 1?&amp;nbsp; Assuming you have such a variable, but its name is a secret, you could use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;campaign_code = 'C' || put(secret_variable, z5.);&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 14:57:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442380#M839</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-03-05T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Campaign Code sequence</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442401#M840</link>
      <description>&lt;P&gt;I do not see anything in the Admin/User Guides to provide a format with leading zeros. The only shot in the dark I could think of is try CAMP##### as a format. Otherwise start it out at CAMP10000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As Dmitry pointed out in another post you can change the starting number in the SAS Dataset MAMisc. Take his advice in avoiding locks if you update it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="Link" href="https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-set-the-sequence-number-campaign-code-amp-communication/m-p/397984/highlight/true#M610" target="_blank"&gt;https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-set-the-sequence-number-campaign-code-amp-communication/m-p/397984/highlight/true#M610&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 15:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442401#M840</guid>
      <dc:creator>pcapazzi</dc:creator>
      <dc:date>2018-03-05T15:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Campaign Code sequence</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442725#M843</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most likely, nobody can tell you what the Campaign Code should &lt;STRONG&gt;be &lt;/STRONG&gt;originally&amp;nbsp;in SAS MA and CDM.&lt;/P&gt;&lt;P&gt;Whoever asks that, needs that code to &lt;EM&gt;appear&lt;/EM&gt;&amp;nbsp;the way&amp;nbsp;they need, somewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I all the places where this code may surface, you can implement an appropriate transformation instead of using the original code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is Campaign Code exported to an output file?&amp;nbsp; Don't export Campaign Code. Export a&amp;nbsp;calculated variable instead that transforms it to the way they need. It's simple.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Is Campaign Code used as part of a default naming convention for an output file name as a macro variable? Don't use the original Campaign Code. Use some macro language formula to transform Campaign Code to the way you need. It's less simple but doable.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Is Campaign Code used in any reports on top of SAS CDM data model?&amp;nbsp; Don't surface SAS CDM tables there as is. Create database views that transform Campaign Code to the way they need. It's simple.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 04:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442725#M843</guid>
      <dc:creator>Dmitry_Alergant</dc:creator>
      <dc:date>2018-03-06T04:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Campaign Code sequence</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442735#M844</link>
      <description>&lt;P&gt;Hi pcapazzi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately using multiple # will just result in duplication of the unique sequence number. For example if the sequence was up to 123 and you used CAMP### as the Code Format, the result would be a campaign code of CAMP123123123.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your suggestion of starting at 10000 is the best one I can see, and it doesn't require downstream manipulation of codes in export files and macros etc, and the data in the CDM matches whats in export files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that when you get to CAMP99999, then next one will be CAMP100000.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards&lt;BR /&gt;James&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 05:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442735#M844</guid>
      <dc:creator>JamesAnderson</dc:creator>
      <dc:date>2018-03-06T05:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Campaign Code sequence</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442749#M845</link>
      <description>&lt;P&gt;Thanks James.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have updated the sequence in MAMisc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 06:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442749#M845</guid>
      <dc:creator>Rupasree</dc:creator>
      <dc:date>2018-03-06T06:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Campaign Code sequence</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442839#M846</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can i use the same code format for Communication Code as well ?&lt;/P&gt;
&lt;P&gt;Because i also have same kind of requirement for Communication Code i.e. COMM+ 5digit.&lt;/P&gt;
&lt;P&gt;However, when i changed the Sequence table for CommunicationSK it is not reflecting in MA where as for Campaign Code when i updated the Sequence table for CampaignSK it is working as expected i.e. Campaign Code is C10001.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 11:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-change-Campaign-Code-sequence/m-p/442839#M846</guid>
      <dc:creator>Rupasree</dc:creator>
      <dc:date>2018-03-06T11:50:30Z</dc:date>
    </item>
  </channel>
</rss>

