Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8511

Re: Control Break statements

$
0
0


I think when 2nd column and third column both changes then you want to increment the COUNT variable, please store the previous 2nd column value (document number) in some temp variable and compare during the next loop traversal if change then increment.

 

       ON CHANGE OF V_PRCTR. 

            COUNT = 0.

       ENDON.

      

       IF V_PRCTR NE SPACE and l_v_temp is not initial and l_v_temp NE Current 2nd col value.

            COUNT = COUNT + 1.

       ELSE.

            SKIP.

       ENDIF.

 

       l_v_temp = 2nd col value.

 

Sorry i didn't understand which of you cols holds what value thats why i have to use col number as per you table


Viewing all articles
Browse latest Browse all 8511

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>