/*
 * rc_derived_dbio.h - rc 모듈 DB 접근 계층 copybook (rc_derived_dbio, part of librcdbio.a).
 * ECPG functions; run on the caller's XA branch (no EXEC SQL CONNECT).
 * Return convention: >=0 ok, -1 = SQL error.
 */
#ifndef RC_DERIVED_DBIO
#define RC_DERIVED_DBIO

typedef struct { char biz_date[16]; long avg_per_pid; } rc_derived_rec_t;

long rcdb_avg_match_per_purchase(const char *bizdate);

#endif /* RC_DERIVED_DBIO */
