SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 37021: An array subscript out of range error occurs when running the di_dm_promo_price_fact_extract macro

DetailsHotfixAboutRate It

When running SAS® Markdown Optimization, you might encounter an error similar to the following when running the di_dm_promo_price_fact_extract macro:

ERROR: Array subscript out of range at line 541 column 8.
res_start_dt=16NOV2008 res_end_dt=22NOV2008 res_abs_price=. res_abs_Discount=.
res_percent_discount=30.00 geo_hier_sk=299
prod_hier_sk=237907 START_DT=28NOV2008 PRICE_VALUE_TYPE=1 END_DT=29NOV2008
PRICE_VALUE=2.5000 lvl=14 FIRST.geo_hier_sk=0
LAST.geo_hier_sk=0 FIRST.prod_hier_sk=0 LAST.prod_hier_sk=0 max_idx=51 i=49
first_open_idx=1 new_start_dt=17864 _ERROR_=1 _N_=55

This error occurs when overlapping promotions exist. There is no workaround for this issue.

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Markdown OptimizationWindows Vista2.24.29.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows XP Professional2.24.29.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows Server 20082.29.1 TS1M3 SP4
Microsoft Windows Server 2003 Standard Edition2.24.29.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows Server 2003 Enterprise Edition2.24.29.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition2.24.29.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows NT Workstation2.24.29.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows 2000 Professional2.24.29.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows 2000 Server2.24.29.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server2.24.29.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows 2000 Advanced Server2.24.29.1 TS1M3 SP49.1 TS1M3 SP4
64-bit Enabled AIX2.24.29.1 TS1M3 SP49.1 TS1M3 SP4
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.