X is always a bad choice for a variable name in Rexx. Sooner or later you will try to append it to a literal and complain it does not work.
do x = 1 to 25 say ' 'x end The ' 'x says you want a hex value, not a blank and the value of x. When you come back to the code you may wish you had used longer and meaningful names. Then again some coders like to struggle and figure out what their code was supposed to do. Rexx Style has been presented at the SHARE Conference Meetings, maybe you should get a copy and avoid some other problems headed your way. On Sat, 6 Sep 2008 04:22:08 -0500, SUBSCRIBE IBM-MAIN Neo <[EMAIL PROTECTED]> wrote: >Strange things happened when I executed the code below. >After I entered 2 for OPTS to ran OBJ_D2, I could never leave the loop. >But if I comment out the "OUTTRAP" statements, everything will go fine. >So could anyone explain what OUTTRAP has done to my loop? >Thanks in advance. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html