<?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 SAS FS batch code in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-FS-batch-code/m-p/481088#M3232</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS forecast studio GUI and batch code for one the integrated solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created forecast studio projects and updating&amp;nbsp;them every month for a new set of data using macro, %fssetdat, and&amp;nbsp;%fsrunprj.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above macros run perfectly fine when there is no change in the hierarchy (i.e. moving up and down the hierarchy from SAS FS).&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I am moving hierarchies up and down, I am getting an error in FSRUNPRJ macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the error from log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;s13946 *----------------------------------------------------------------------&lt;BR /&gt;s13947 * updating _hpf4.outmodelreject to remove by groups that are not in source data&lt;BR /&gt;0t1023 The SAS System Wednesday, 25 July 2018 12:15:00&lt;BR /&gt;t&lt;BR /&gt;s13948 *---------------------------------------------------------------------;&lt;BR /&gt;s13949 %macro _tempDropBy;&lt;BR /&gt;s13950 %if %sysfunc(exist(_HPF4.OUTMODELREJECT)) %then %do;&lt;BR /&gt;s13951 data _HPF4.OUTMODELREJECT;&lt;BR /&gt;s13952 set _HPF4.OUTMODELREJECT;&lt;BR /&gt;s13953 by CountryId CompanyId brandid marketinggroupid Tradechannelid notsorted;&lt;BR /&gt;s13954 retain __match__ 0;&lt;BR /&gt;s13955 drop __match__;&lt;BR /&gt;s13956 if first.Tradechannelid then do;&lt;BR /&gt;s13957 _iorc_ = 0;&lt;BR /&gt;s13958 set _HPF4.OUTSTAT (keep=CountryId CompanyId brandid marketinggroupid Tradechannelid) key= _nodeKey_ ;&lt;BR /&gt;s13959 if _iorc_ eq %sysrc(_SOK) then __match__ = 1;&lt;BR /&gt;s13960 else __match__ = 0;&lt;BR /&gt;s13961 end;&lt;BR /&gt;s13962 if __match__ then output _HPF4.OUTMODELREJECT;&lt;BR /&gt;s13963 _error_ = 0;&lt;BR /&gt;s13964 run;&lt;BR /&gt;s13965 %end;&lt;BR /&gt;s13966 %mend _tempDropBy;&lt;BR /&gt;s13967 %_tempDropBy;&lt;BR /&gt;n&lt;BR /&gt;eERROR: BY variable brandid is not on input data set _HPF4.OUTMODELREJECT.&lt;BR /&gt;nNOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;wWARNING: The data set _HPF4.OUTMODELREJECT may be incomplete. When this step was stopped there were 0 observations and 8 variables.&lt;BR /&gt;wWARNING: Data set _HPF4.OUTMODELREJECT was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also attaching the complete log file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 11:59:30 GMT</pubDate>
    <dc:creator>kamlesh_suthar</dc:creator>
    <dc:date>2018-07-25T11:59:30Z</dc:date>
    <item>
      <title>SAS FS batch code</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-FS-batch-code/m-p/481088#M3232</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS forecast studio GUI and batch code for one the integrated solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created forecast studio projects and updating&amp;nbsp;them every month for a new set of data using macro, %fssetdat, and&amp;nbsp;%fsrunprj.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above macros run perfectly fine when there is no change in the hierarchy (i.e. moving up and down the hierarchy from SAS FS).&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I am moving hierarchies up and down, I am getting an error in FSRUNPRJ macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the error from log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;s13946 *----------------------------------------------------------------------&lt;BR /&gt;s13947 * updating _hpf4.outmodelreject to remove by groups that are not in source data&lt;BR /&gt;0t1023 The SAS System Wednesday, 25 July 2018 12:15:00&lt;BR /&gt;t&lt;BR /&gt;s13948 *---------------------------------------------------------------------;&lt;BR /&gt;s13949 %macro _tempDropBy;&lt;BR /&gt;s13950 %if %sysfunc(exist(_HPF4.OUTMODELREJECT)) %then %do;&lt;BR /&gt;s13951 data _HPF4.OUTMODELREJECT;&lt;BR /&gt;s13952 set _HPF4.OUTMODELREJECT;&lt;BR /&gt;s13953 by CountryId CompanyId brandid marketinggroupid Tradechannelid notsorted;&lt;BR /&gt;s13954 retain __match__ 0;&lt;BR /&gt;s13955 drop __match__;&lt;BR /&gt;s13956 if first.Tradechannelid then do;&lt;BR /&gt;s13957 _iorc_ = 0;&lt;BR /&gt;s13958 set _HPF4.OUTSTAT (keep=CountryId CompanyId brandid marketinggroupid Tradechannelid) key= _nodeKey_ ;&lt;BR /&gt;s13959 if _iorc_ eq %sysrc(_SOK) then __match__ = 1;&lt;BR /&gt;s13960 else __match__ = 0;&lt;BR /&gt;s13961 end;&lt;BR /&gt;s13962 if __match__ then output _HPF4.OUTMODELREJECT;&lt;BR /&gt;s13963 _error_ = 0;&lt;BR /&gt;s13964 run;&lt;BR /&gt;s13965 %end;&lt;BR /&gt;s13966 %mend _tempDropBy;&lt;BR /&gt;s13967 %_tempDropBy;&lt;BR /&gt;n&lt;BR /&gt;eERROR: BY variable brandid is not on input data set _HPF4.OUTMODELREJECT.&lt;BR /&gt;nNOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;wWARNING: The data set _HPF4.OUTMODELREJECT may be incomplete. When this step was stopped there were 0 observations and 8 variables.&lt;BR /&gt;wWARNING: Data set _HPF4.OUTMODELREJECT was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also attaching the complete log file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 11:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-FS-batch-code/m-p/481088#M3232</guid>
      <dc:creator>kamlesh_suthar</dc:creator>
      <dc:date>2018-07-25T11:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS FS batch code</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-FS-batch-code/m-p/481096#M3233</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the message says, "brandid is not on input data set _HPF4.OUTMODELREJECT", if you think it should be, then trace back to see if brandid is being explicitly dropped or not kept in earlier code (and make sure it is spelled correctly).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot see the attachment due to security restrictions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 12:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-FS-batch-code/m-p/481096#M3233</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2018-07-25T12:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS FS batch code</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-FS-batch-code/m-p/481100#M3234</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for replying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This file is a part of forecast studio project, and when I run the SAS macro %FSRUNPRJ, it calls some set of codes. The input file "&lt;SPAN&gt;_HPF4.OUTMODELREJECT" is created at the time when the project is created.and it keeps updated. So brandid should automatically get added in the dataset but it is not getting updated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 12:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-FS-batch-code/m-p/481100#M3234</guid>
      <dc:creator>kamlesh_suthar</dc:creator>
      <dc:date>2018-07-25T12:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS FS batch code</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-FS-batch-code/m-p/481115#M3235</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have Forecast Studio, so I don't think I can help you much&amp;nbsp;further (I assume you've checked the log for any drop / keep statements / options).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If no one else can help then try contacting SAS Technical Support:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/en/technical-support/contact-sas.html" target="_blank"&gt;https://support.sas.com/en/technical-support/contact-sas.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 13:42:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-FS-batch-code/m-p/481115#M3235</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2018-07-25T13:42:07Z</dc:date>
    </item>
  </channel>
</rss>

