In order to structure the data areas, the following header files containing predefined data structures are supplied with openUTM.
On BS2000 systems, the data structures are present in the library SYSLIB.UTM.070.C.
On Unix, Linux and Windows systems, the data structures are present in the include directory in the UTM directory utmpath.
Name | Contents and meaning |
---|---|
kcapro.h | Optional second parameter area for the APRO call: |
kcat.h | KDCS attribute functions (only on BS2000 systems): |
kcca.h | The data structure for the KDCS communication area; this area contains:
kcca.h is included by kcmac.h. |
kccf.h | Only on BS2000 systems: Defines the second parameter passed by openUTM during the INPUT event exit. In this parameter openUTM passes the contents of the control fields of screen formats to the program unit. |
kcdad.h | Data structure for the DADM call: |
kcdf.h | KDCS screen functions: |
kcinf.h | Data structure for the INFO call: |
kcini.h | Defines a second parameter area for the INIT call (only required for INIT PU): |
kcinp.h | Data structure for the INPUT exit: |
kcmac.h | KDCS macro interface for C/C++: |
kcmsg.h | Data structure for the UTM messages: |
kcpa.h | Data structure for the KDCS parameter area: |
kcpad.h | Data structure for the PADM call: |
kcsgst.h | Data structure for the SIGN call: |
Insert the data structures you will use with #include before the call to the program unit. You must explicitly declare the corresponding areas (communication area, KDCS parameter area,...) in the program unit.
/* insert constants and data structures */ #include <kcmac.h> /* UTM data structures */ #include <kcinf.h> struct ca_area {...}; struct work { union kc_paa param; struct msg_area { struct kc_dttm info_time; /* area for INFO DT */ struct kc_sysinf info_sys; /* area for INFO SI */ char text[200]; } msg_a; }; void cprog (struct ca_area *ca, struct work *spab)