On Tue, 14 Jun 2022, at 17:45, Paul Gilmartin wrote: > ISPF, like JCL, is a user interface supporting delimited strings in > commands, but reports > an error for: > CHANGE PARM '"Hello," says O''Reilly.'
Does the error say what the problem is? I'm assuming it's because of the R (of Reilly) being taken as an indicator that the single-quote-delimited string before it is to be interpreted as a regex? (because of the statement starting "A delimiter character in the string is also" in: Delimited string Any string enclosed (delimited) by either single quotes ( ' ) or double quotes ( " ). The beginning and ending delimiters must be the same character. The string can contain the delimiter character. However, if a delimiter character in the string is followed by a blank ( ) or a comma ( , ), that delimiter character is processed as the ending delimiter. A delimiter character in the string is also processed as the ending delimiter if it is followed by the letter c, p, r, t, or x. In these cases, the letter is processed as an indication that the preceding string is a character, picture, regular expression, text, or hexadecimal string. That's on p45 of "ISPF Edit and Edit Macros" SC19-3621-30) That implies that the parser looks for possible ending delimiters before it parses the contents of the delimited string. It's not how I'd have designed it! I'd have gone with a strict left to right character by character lexical scan. -- Jeremy Nicoll - my opinions are my own. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
