for c_eff in c1 loop
exit when c1%notfound;
begin
flag_clear_susp_head :=0;
open c_rec(c_eff.effective_date);
loop
fetch c_rec into P_SKU,P_STORE,P_EVENT_NO,P_DEPT,P_ORIGINAL_EFFECTIVE_DATE,P_EFFECTIVE_DATE,P_PRICE,P_TRAN_TYPE,
P_STATUS,P_MANUAL_CHANGE_IND,P_MERCH_IND,P_TICKET_TYPE,P_REASON_MSI,P_SEASONAL_CLEAR_MSI;
Maybe if you format your spaghetti code it would be easier for you to find the problem.
Hint: Then use the "code" tags to post it (Select your code and click on the "#" icon in the upper menu).
"The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb
Bookmarks