GDDM-PGF V2R1.3 OPS User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF | BOOK


Creating ordered and unordered lists

GDDM-PGF V2R1.3 OPS User's Guide
SC33-1776-00



Using these five commands, you can generate ordered or unordered lists. You start the list with a TFxL command, end it with TFExL, and add list items with TFLI. For example:


          1 ...
            )ops tfh Agenda:
            )ops tfol ; * start of an ordered list
            )ops tfli Item one
            )ops tfli Item two
            )ops tfeol ; * end of list

produces:


    __________________________________________________________________________________ 
   |                                                                                  |
   |                                                                                  |
   |                                                                                  |
   |   Agenda:                                                                        |
   |                                                                                  |
   |        1. Item one                                                               |
   |                                                                                  |
   |        2. Item two                                                               |
   |                                                                                  |
   |                                                                                  |
   |__________________________________________________________________________________|

Ordered lists are marked with sequential numbers and letters; unordered lists are marked with bullets and dashes. The lists are identically structured.

You can nest lists, and mix the different kinds together. You can have up to 10 lists active at the same time. For example:


          1 )ops reset; prefix :
            :tfh Agenda:
            :tfol ; * start of ordered list
            :tfli Morning:
            :tful ; * start of unordered list
            :tfli Coffee
            :tfli Lunch
            :tfeul ; * end of unordered list
            :tfli Afternoon:
            :tful ; * start of unordered list
            :tfli Break
            :tfeul ; * end of unordered list
            :tfeol ; * end of ordered list

produces:


    __________________________________________________________________________________ 
   |                                                                                  |
   |                                                                                  |
   |                                                                                  |
   |        Agenda:                                                                   |
   |                                                                                  |
   |         1. Morning:                                                              |
   |                                                                                  |
   |           o  Coffee                                                              |
   |                                                                                  |
   |           o  Lunch                                                               |
   |                                                                                  |
   |         2. Afternoon:                                                            |
   |                                                                                  |
   |           o  Break                                                               |
   |                                                                                  |
   |                                                                                  |
   |__________________________________________________________________________________|

Each list item is processed as a paragraph, and the space is the default paragraph spacing. You can adjust this with the keyword operand PSP on TFOL and TFUL, which defines a local paragraph distance within the list. For example:


          tful psp .5l

reduces the space to half a line. You can also specify space 0 with the keyword COMPACT:


          tfol compact

Adding COMPACT to the example above gives:


    __________________________________________________________________________________ 
   |                                                                                  |
   |                                                                                  |
   |                                                                                  |
   |   Agenda:                                                                        |
   |                                                                                  |
   |        1. Morning:                                                               |
   |           o  Coffee                                                              |
   |           o  Lunch                                                               |
   |        2. Afternoon:                                                             |
   |           o  Break                                                               |
   |                                                                                  |
   |                                                                                  |
   |__________________________________________________________________________________|

Ordered lists are marked with numbers for the first list, uppercase letters for the second, and then with lowercase letters. If you begin more ordered lists, the sequence is repeated. Default marking fills as much space as "9. " (a nine, a period and a space). If you want another width, use BW (Bullet Width), as in:


          tfol bw '1.  '
          tfol bw 30mm

You can specify the width as either a text string or a value.

Unordered lists are marked with filled circles (bullets) for the first list, and by hyphens for subsequent lists. The width of the mark is two spaces by default, or whatever you set using BW.

You can also select another marking using BULLET, as in:


          tful bullet '*'
          tful bullet af

You specify the character in the same way as when defining translation tables: either as a text string of one character (quotes are optional) or as a hexadecimal value of two characters.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012