>can you describe it how it is not equal to space(9)
If actcod = '123456789' then actcod cannot also equal 9 spaces. You are setting actcod = '123456789' at the top of your routine before the IF statement. Then your IF is conditional upon pending = "I" .AND. actcod = SPACE(9) which it cannot be since actcod = '123456789'
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.