TSO-ISPF JCL COBOL VSAM DB2 CICS IMS-DB Tools Articles Forum Quiz Interview Q&A

Labels


Using Labels in View/Edit and Browse:

Labels are bookmarks that can be used to locate a particular line in the dataset that is currently in use. These are used to repeatedly verify information against another in a different place in the dataset.

The usage is as given as follows:

View/Edit:

  1. Go to the line where you want to set the label

  2. Type '.A', '.B' etc, in columns 1 to 6. Pressing ENTER now sets the label.

    set label in edit mode
  3. Use LOCATE command to locate the labels later.

    If you want to go to the label. Type L .labelname(eg. L .A). Where .A is a label name.

    locate label in edit mode

    Then Press Enter. Cursor will go to the line where we set the lable.

    located label in edit mode

Browse Mode:

  1. Position the line that you want to set the label on top of the page.

  2. On the command line, type .A or .B as desired. Pressing ENTER now sets the label.

    If you want to mark a label .A in line 9, Type .A in command line and keep the cursor in line 9 and press Enter.

    set label in browse mode

    assign label in browse mode
  3. Use LOCATE command to locate the labels later.

    If you want to go to the label. Type L .labelname(eg. L .A). Where .A is a label name.

    locate label in browse mode

    Then Press Enter. Cursor will go to the line where we set the lable.

    located label in browse mode

If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!

Are you looking for Job Change? Job Portal