Skip to content

The Runtime Data Structure (rtd)

From C use Runtime Data Structure (rtd).

       #include <libcob.h>
       
       COB_RTD = cob_get_rtd();
       Define cit_runtime_t * const rtd

Representing Runtime Flags in the Runtime Data Structure.

COB_NO_SIGNAL=1 rtd->cob_disable_signal_handler = 1;
COB_ERROR_FILE=<Filename> rtd->cob_err_file = stderr;
COB_WARNING=N rtd->warning_disable = 1;
COB_LOAD_CASE ->doc UPPER: rtd->name_convert = 1;
LOWER: rtd->name_convert = 2;
rtd->load_match_exact_case = 1/0;
rtd->load_match_upper_case = 1/0;
rtd->load_match_lower_case = 1/0;
COB_CALL_CASE ->doc rtd->load_match_exact_case = 1/0;
rtd->load_match_upper_case = 1/0;
rtd->load_match_lower_case = 1/0;
COB_LOAD_PRIORITY rtd->call_flag |= COB_LOAD_PRIORITY;
COB_FULL_CANCEL rtd->call_flag |= COB_FULL_CANCEL;
COB_PRE_LOAD=<lib list> cob_load_shared_lib (rtd, s);
COB_EXTFH=<Name> rtd->default_extfh_entry =<Name>
extfh:<name>
COB_EXTFH_INDEXED=<Name>
isam-extfh:name
rtd->default_extfh_indexed_entry =…
COB_EXTFH_FLAT=<Name>
flat-extfh:name
rtd->default_extfh_flat_entry = …
COB_EXTFH_LIB=<Library Name>
isam-extfh-lib:lib_name
flat-extfh-lib:lib_name
cob_load_shared_lib (rtd,s);
COB_SYNC=Y rtd->cob_do_sync = 1;
COB_SORT_MEMORY=<Bytes> rtd->cob_sort_memory = n;
COB_LS_NULLS=Y/N YES: rtd->cob_ls_nulls = 1;
NO: rtd->cob_ls_nulls = -1;
!!! THIS overwrite the line-seq-mf:yes/no
COB_LS_DOS=Y/N YES: rtd->cob_ls_dos = 1;
NO: rtd->cob_ls_dos = -1;
!!! THIS overwrite the line-seq-dos:yes/no
Back to top