/* <convdef.h>
 *
 *	Definitions for callable CONVERT.
 */
#ifndef _CONVDEF_H
#define _CONVDEF_H

#define CONV$V_SIGNAL	    0
#define CONV$V_FDL_STRING   1
#define CONV$M_SIGNAL	    (1<<CONV$V_SIGNAL)		/* 0x01 */
#define CONV$M_FDL_STRING   (1<<CONV$V_FDL_STRING)	/* 0x02 */
struct convdef {
	unsigned conv$v_signal	    : 1;
	unsigned conv$v_fdl_string  : 1;
	unsigned		    : 14;
};

#define CONV$K_OPTIONS_COUNT	 0
#define CONV$K_CREATE		 1
#define CONV$K_SHARE		 2
#define CONV$K_FAST		 3
#define CONV$K_MERGE		 4
#define CONV$K_APPEND		 5
#define CONV$K_SORT		 6
#define CONV$K_WORK_FILES	 7
#define CONV$K_KEY		 8
#define CONV$K_PAD		 9
#define CONV$K_PAD_CHARACTER	10
#define CONV$K_TRUNCATE		11
#define CONV$K_EXIT		12
#define CONV$K_FIXED_CONTROL	13
#define CONV$K_FILL_BUCKETS	14
#define CONV$K_READ_CHECK	15
#define CONV$K_WRITE_CHECK	16
#define CONV$K_FDL		17
#define CONV$K_EXCEPTION	18
#define CONV$K_PROLOGUE		19
#define CONV$K_MAX_OPTIONS	19
#define CONV$C_MAX_OPTIONS	19
#define CONV$S_OPTIONS		80
struct conv$options {
    unsigned long conv$l_options_count;
    unsigned long conv$l_create;
    unsigned long conv$l_share;
    unsigned long conv$l_fast;
    unsigned long conv$l_merge;
    unsigned long conv$l_append;
    unsigned long conv$l_sort;
    unsigned long conv$l_work_files;
    unsigned long conv$l_key;
    unsigned long conv$l_pad;
    unsigned long conv$l_pad_character;
    unsigned long conv$l_truncate;
    unsigned long conv$l_exit;
    unsigned long conv$l_fixed_control;
    unsigned long conv$l_fill_buckets;
    unsigned long conv$l_read_check;
    unsigned long conv$l_write_check;
    unsigned long conv$l_fdl;
    unsigned long conv$l_exception;
    unsigned long conv$l_prologue;
};

#define CONV$K_STATISTICS_COUNT 0
#define CONV$K_FILE_COUNT	1
#define CONV$K_RECORD_COUNT	2
#define CONV$K_EXCEPT_COUNT	3
#define CONV$K_VALID_COUNT	4
#define CONV$K_MAX_STATISTICS	4
#define CONV$C_MAX_STATISTICS	4
#define CONV$S_STATISTICS	20
struct conv$statistics {
    unsigned long conv$l_statistics_count;
    unsigned long conv$l_file_count;
    unsigned long conv$l_record_count;
    unsigned long conv$l_except_count;
    unsigned long conv$l_valid_count;
};

#define RECL$K_STATISTICS_COUNT 0
#define RECL$K_SCAN_COUNT	1
#define RECL$K_DATA_COUNT	2
#define RECL$K_INDEX_COUNT	3
#define RECL$K_TOTAL_COUNT	4
#define RECL$K_MAX_STATISTICS	4
#define RECL$C_MAX_STATISTICS	4
#define RECL$S_STATISTICS	20
struct recl$statistics {
    unsigned long recl$l_statistics_count;
    unsigned long recl$l_scan_count;
    unsigned long recl$l_data_count;
    unsigned long recl$l_index_count;
    unsigned long recl$l_total_count;
};

#endif	/*_CONVDEF_H*/