I am trying to write a select case statement module which using 3 tables; COVERAGE, TABLEC1 AND TABLEC2. The statement 1) anchors the distinct value from a table (TABLEC1), 2) goes through 4 select case scenarios based on TABLEC2 ORDER, 3) updates a table (COVERAGE) with the best result and 4) loops to the next distinct value in TABLEC1.
The code complies without error, but does not give me any results. In attempting to debug it, I found the following issues:
The code complies without error, but does not give me any results. In attempting to debug it, I found the following issues:
- The order case does not set; it only sets to ‘A’ even though I request it to equal ‘D’
- Code does not run through all of the select cases, only looks at the first case (D)
- Does not update the COVERAGE table