From: "Stephen M. Wiegand" <[EMAIL PROTECTED]>
I am always getting the string not found message. The return code is a 4. Any help/suggestions would be appreciated.


Hi Steve,

Others have mentioned the use of ampersands versus leaving variables outside the quotes, so I'll try a different suggestion. The odds of the following resolving your problem are low, but even so I believe it is generally good practise to include the following at the top of every edit macro:

"(LBND,RBND) = BOUNDS"
"BOUNDS"

What the above does is save the current boundary settings (i.e. left and right) and then set the boundaries to their defaults (e.g. columns 1 and 80). Then, after all processing in the body of the macro is complete, the boundaries should be returned to their original settings by doing the following:

"BOUNDS = "lbnd rbnd

Many commands (e.g. FIND, CHANGE, SORT, etc) are affected by boundary settings. By employing the above, you will ensure that your macro will work in every situation (where the string to change exists), even if the boundaries are not in their expected locations when the macro starts.

HTH,

Dave Salt
SimpList(tm) - The easiest, most powerful way to surf a mainframe!
http://www.mackinney.com/products/SIM/simplist.htm

----------------------------------------------------------------------
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

Reply via email to