Natural for Mainframes Version 8.2.6 for Mainframes
 —  Parameter Reference  —

CCTAB - Printer Escape Sequence Definition

This Natural profile parameter is used to set up a table of printer-control sequences, which is used for printing additional reports and hardcopies. It corresponds to the NTCCTAB macro in the Natural parameter module.

Possible settings See CCTAB Parameter Syntax.
Default setting As specified within the macro NTCCTAB in NATCONFG.
Dynamic specification yes This parameter can only be specified dynamically. In the Natural parameter module, the macro NTCCTAB is used instead.
Specification within session no  

The following topics are covered below:


CCTAB Parameter Syntax

For each profile, a separate CCTAB parameter must be specified. The CCTAB parameter can be specified in three variants:

1st Variant

CCTAB=(name,OPN='xxxxx',CLS='yyyyy')

Where:

name is the name of the profile form; that is, the DEFINE PRINTER (n) OUTPUT 'nnnnn' PROFILE 'name', which is required and which has a maximum length of 8 bytes.
OPN='xxxxx' is optional and defines a data string (up to 250 bytes) which is sent to the printer with each open operation.
CLS='yyyyy' is optional and defines a data string (up to 250 bytes) which is sent to the printer before each close operation.

Note:
OPN and CLS can be specified in any sequence.

2nd Variant

CCTAB=(name,CODE='n',CS='xxxx')

Where:

CODE='n' is a character which is recognized by Natural once it appears in the output string.
CS='xxxx' is the string to replace the CODE character.

Note:
The CS subparameter must follow the CODE subparameter.

3rd Variant

CCTAB=(name,ATR=nnnn,CSS='xxxx',CSE='yyyy')

Where:

ATR='nnnn' is the Natural internal field attribute. The name is defined by the macro NAMATR.
CSS='xxxx' is the string (up to 20 bytes) which is inserted before the field. CSS is mandatory.
CSE='yyyy' is the string (up to 20 bytes) which is inserted after the field. CSE is mandatory.

Note:
The CSS and CSE subparameters must follow the ATR subparameter.

Top of page

NTCCTAB Macro Syntax

The NTCCTAB macro can be specified in three variants:

1st Variant

         NTCCTAB name,                                                 *
               OPN='xxxxx',                                            *
               CLS='yyyyy'

For details, refer to the CCTAB parameter syntax, 1st Variant.

2nd Variant

         NTCCTAB name,                                                 *
               CODE='n',                                               *
               CS='xxxx'

For details, refer to the CCTAB parameter syntax, 2nd Variant.

3rd Variant

         NTCCTAB name,                                                 *
               ATR=nnnn,                                               *
               CSS='xxxx',                                             *
               CSE='yyyy'

For details, refer to the CCTAB parameter syntax, 3rd Variant.

Top of page

String Syntax for OPN, CLS, CODE, CS, CSS or CSE

You specify character strings either as characters (enclosed in apostrophes) or as the corresponding hexadecimal representation of the characters (without apostrophes).

Top of page

Proportional Fonts

If you use proportional fonts, be sure to return to a fixed-spacing font before using tables where you need correct positioning.

Top of page

Examples of CCTAB Parameter

CCTAB=(DBCST,CODE=OE,CS=400E,CODE=OF,CS=0F40,ATR=P5DBCS,CSS=OE,CSE=OF)
CCTAB=(OPN=27C5274DA2F1F188275093F0D6,CLS='LAST LINE')

Top of page

Examples of NTCCTAB Macros

         NTCCTAB DBCST
         NTCCTAB CODE=OE,CS=400E
         NTCCTAB CODE=OF,CS=0F40<
         NTCCTAB ATR=P5DBCS,CSS=OE,CSE=OF
         NTCCTAB TEST,OPN=27C5274DA2F1F188275093F0D6,CLS='LAST LINE'
         NTCCTAB CODE='<',CS=' B(SOB'
         NTCCTAB CODE='>',CS='B(S3B '
         NTCCTAB CODE='(',CS=' B(S1S'
         NTCCTAB CODE=')',CS='B(SOS '
         NTCCTAB ATR=P2UL,CSS=' B&&DD',CSE='B&&D§'
         NTCCTAB ATR=P2UL,CSS=405FF1C25084C4,CSE=5FF1C250847C
         NTCCTAB ATR=P2ITAL,CSS=' B(S1S',CSE='B(SOS'
         NTCCTAB ATR=P1HIGH,CSS=' B(S3B',CSE='B(SOB'
         NTCCTAB ATR=P2RVID,CSS=' B(S-3B',CSE='B(SOB'

Top of page