z/OS ISPF User's Guide Vol II
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using picture strings

z/OS ISPF User's Guide Vol II
SC19-3628-00

A picture string used as a string operand in a FIND command allows you to search for a particular type of character, without regard for the specific character involved. You can use special characters within the picture string to represent the type of character to be found, as follows:

String
Meaning
P'='
Any character
P'¬'
Any nonblank character
P'.'
Any nondisplayable (invalid) character
P'#'
Any numeric character (0-9)
P'-'
Any nonnumeric character
P'@'
Any alphabetic character (uppercase or lowercase).
String
Meaning
P'<'
Any lowercase alphabetic character
P'>'
Any uppercase alphabetic character
P'$'
Any special character (not alphabetic or numeric).

If an APL or TEXT keyboard is being used, this additional character can be used in a picture string:

P'This symbol looks like a small circle over small horizontal line, over a small circle.'
Any APL-specific or TEXT-specific character
P'_'
Any underscored alphabetic APL character and delta.

Only the special characters listed are valid within a picture string, but the string can include alphabetic or numeric characters that represent themselves.

A DBCS subfield cannot be specified as the subject of a picture string for the FIND command.

Examples of picture strings:
P'###'
A string of 3 numeric characters
P'¬ ¬'
Any 2 nonblank characters separated by a blank
P'.'
Any nondisplayable character
P' #'
A blank followed by a numeric character
P'#AB'
A numeric character followed by 'AB'.
Examples of FIND commands using picture strings:
FIND P'.'
Find next nondisplayable character
FIND P'¬' 72
Find next nonblank character in column 72
F P' ¬' 1
Find the next line with a blank in column 1 followed by a nonblank.
When you use the special characters '=' or '.' and a nondisplayable character is found, a hexadecimal representation is used in the confirmation message that appears in the upper-right corner of the screen. For example:
FIND P'..'

could result in the message CHARS X'0205' FOUND.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014