z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


UC—Convert Characters to Uppercase

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The UC (uppercase) line command converts characters in a data set or member from lowercase to uppercase. However, it does not affect the caps mode of the data that you are editing.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-UC--+---+---------------------------------------------------><
       '-n-'   

Read syntax diagramSkip visual syntax diagram
>>-+-UCC--+----------------------------------------------------><
   '-UCUC-'   

n
The number of lines to be converted to uppercase. If you do not type a number, or if the number you type is 1, only the line on which you type UC is converted to uppercase.

Description

To convert characters on one or more lines to uppercase:

  1. Type UC in the line command field of the source code line that contains the characters that you want to convert. To convert characters on lines following this one, type a number greater than 1 after the UC command.
  2. Press Enter. The characters on the source code line or lines are converted to uppercase.

To convert characters in a block of lines to uppercase:

  1. Type UCC in the line command field of both the first and last source code lines that contain characters that are to be converted. You can scroll (or use FIND or LOCATE) between typing the first UCC and the second UCC, if necessary.
  2. Press Enter. The characters in the source code lines that contain the two UCC commands and in all of the source code lines between them are converted to uppercase.

See the LC—Convert Characters to Lowercase line command and the CAPS primary command (CAPS—Control Automatic Character Conversion) and macro command (CAPS—Set or Query Caps Mode) for information about converting characters from uppercase to lowercase and vice versa.

Examples

Figure 1 shows how to convert lines of text to uppercase. To convert lines of text to uppercase, place the UC command and the number of lines you want to convert in the line command field where you want the conversion to start.

Figure 1. Before the UC (Uppercase) line command
Screen dump.

When you press Enter, the editor converts the lines specified to uppercase. See Figure 2.

Figure 2. After the UC (Uppercase) line command
Screen dump.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014