Hi Thanks for all the replies. It is from an uncommon program and i am trying to extract the logics out. I know the codes are hard to read, thats why i have trouble reading it. I am trying to tag a number to each IF-THEN-ELSE-ENDIF pair. This is just a simple case. There are a few "big blocks" and i kind of lost tracing some of the IF-ENDIF pairs. The codes are indented in it's native viewer but the viewer cannot be edited. It allows cut and paste but all lines are left justified in an editor As such, I want to find a way to decifer the logic blocks of these codes. I cannot help much dictating the style but i can only try my best to make do with that is available. So, i hope to find a way to tag a number to each IF-THEN-ELSE-ENDIF pair by importing the codes into a data set and tag a number to the pair of if-then-else to make tracking of the blocks easier. Best Regards Jocey
... View more