Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Modifying KDCS attributes (BS2000 systems)

If you use +formats or #formats, you can change the attributes of format fields in the program.

The KDCS attribute combinations are contained in the header file kcat.h and are copied into the program unit via include statements.
The kcat.h header file also contains the KDCATTR macro with which you can set the KDCS attribute combinations. KDCATTR is called as follows:

KDCATTR (attribute_field, attribute_value);

The names and characteristics of the possible KDCS attribute combinations are listed in your formatting system manual.

Example

The "name" field is to be output to the screen as a protected field; a_name is the attribute field corresponding to this.

KDCATTR (spab->std_mask.a_name, KCPROT);

The +format "FORMAT5" contains the "FELD1" to "FELD5" fields. FELD4 should be sent to the screen blinking, all other fields maintain the attributes from the format description.


#include <kcat.h>
unsigned short mput_features;
     ...
    {...  a_format5 mask_out; ...} *spab; 1)
     ...
 /*MPUT call */
     ...
 KDCATTR (mask_out.a_field4, KCSIGN);
 KDCATTR (mask_out.a_field1, KCNOATTR);
 KDCATTR (mask_out.a_field2, KCNOATTR);
 KDCATTR (mask_out.a_field3, KCNOATTR);
 KDCATTR (mask_out.a_field5, KCNOATTR);
 ...
 KDCS_MPUTNT (&mask_out, sizeof(a_format5),
              KDCS_SPACES,KDCS_SPACES,mput_features);

1) Declares the addressing assistants for the +format "format5".