Switch got me ON
Posted by: Siddharth
Now this is what you call a real discovery you can make(Atleast for me). last month we had to create some Adoption Programs due to some ‘Authority Problems’. So We created around 3 new adoption programs.
Now in my CLLE programs(which call these Adoption programs), the concept of switch is used. We had used this switch as a condition to jump to Command Label ‘END’ and then throw some Database error. I tried calling my CLLE program but this error was coming like anything. The reason being the Switch was gettin ON due to one of the Adoption program we were using in our CLLE. So me and my colleague, we looked into the adoption program through DEGUG and then we exclaimed…….’Yes!!!!’ we got it…….the reason was the authority problem in one of the Component and hence the switch was getting ON. This resulted in showing database error although the RPGLE was running perfectly ok.
Now lets see what happens…..bye for now……need to look for some valid data.


