Previous Topic

Next Topic

Book Contents

Book Index

Using CTX/PTX for Printing Bar Codes

This technique is based on the use of CTX/PTX (Composed Text / Presentation Text) structured fields. This technique is very similar to the TRC technique. The main difference is that a special second column is not required in the user banner for selecting the special bar code font. Using this technique it is also possible to limit the bar code font to text in a specific range (columns) on a line. This makes it simple to print other text on the same line that is not in bar code.

The list of fonts can appear (as with the TRC technique) in the CHARS parameter, or in parameters CHAR1, CHAR2, and so on, using the OUTPARM option or in the Font List of the active PAGEDEF used when printing the banner.

The CHARS parameter or the PAGEDEF parameter (if not specified in the $$BANCHR member) must be added with the desired value in an OUTPUT statement in CTDPRINT. There is no need to indicate the TRC printing parameter. When using the OUTPARM option, the CHARS parameter can be added in the $$BANCHR member, so that an OUTPUT statement is not required in CTDPRINT.

Note that when using the CHARS parameter (or parameters CHAR1, CHAR2, and so on), up to four fonts can be specified. When using a PAGEDEF, as many as 127 fonts can be specified. Normally, up to four fonts are sufficient.

If you selected the method that does not require an OUTPUT statement, skip to Adding the CTX/PTX to the Banner Member.

If there is a need to inform Control-D that banners must print using a special OUTPUT statement, one of the following methods can be used:

The following is an example of the OUTPUT statement that must be added to CTDPRINT and referred to from the OUTPARM option or from exit CTDUX003.

  .

  .

  .

//BANNER  OUTPUT  CHARS=(GT12,BRCD)

  .

  .

  .

In the above example, font GT12 is the data center’s default font and font BRCD is the special bar code font.

Following is an example of the OUTPUT statement that must be added to CTDPRINT and referred to from the OUTPARM option when using a PAGEDEF. Note that it is also possible to specify the PAGEDEF in the OUTPARM option.

  .

  .

  .

//BANNER  OUTPUT  PAGEDEF=BNRCD

  .

  .

  .

In the above example, PAGEDEF BNRCD is the special PAGEDEF that contains the required Font List.

Parent Topic

Bar Codes in Banners