Specifying quoted strings

Throughout the FM/CICS interface, there are places where you need to specify a quoted string, for example, fully qualified data set names. In these situations, you can use either the double quotation symbol ("), also called simply a quotation mark, or the single quotation symbol ('), also called an apostrophe. However, you must use matching symbols to open and close the quoted string. For example:

  • "fmndata.test1" and 'fmndata.test1' are both legitimate ways to specify a data set.
  • "fmndata.test1' or 'fmndata.test1" are rejected.

The simplest way to include an apostrophe or quotation symbol as a character is to use the opposite character as the string delimiters. For example:

"it's"
OR
'he said, "hello"'

When your string contains a mix of apostrophes and quotation marks, use two consecutive quotation marks ("") to represent a " character within a string delimited by quotation marks, or two consecutive apostrophes ('') to represent a ' character within a string delimited by single quotation marks. For example, to find the string, "he said, "Take it it's yours.", you would type:

FIND 'he said, "Take it it''s yours."'
Note: In this document the words quotation marks or quotes mean either " or '.