easycics.h

来自「CICS简单入门例程 CICS环境构架 1 安装服务器 1) 建立用户C」· C头文件 代码 · 共 127 行

H
127
字号
/* EasyCICS v1.95 */

/******************************************************************************/
/*-------------------------- HEADER FILES ------------------------------------*/

#ifndef  WIN32
	#define _stdcall
#endif


#include <stdio.h>
#include <stdlib.h>
#include <string.h>


/******************************************************************************/
/*------------------------------ DEFINES -------------------------------------*/

#define BUF_SIZE 32000
#define ROW_SIZE 4000
#define WARN_SIZE 28000
#define BLOCK_SIZE 28000


/*******************************************************************************/
#ifdef  __cplusplus
extern "C" {
#endif
/*******************************************************************************/
/*Normal Functions*/

void _stdcall GetValue( char *KeyName, char *Vlu );
void _stdcall SetValue( char *KeyName, char *Vlu );
void _stdcall SetValueA( char *KeyName, char *Vlu );
void _stdcall GetValue1( char *Key, char *Value, int Num );

void _stdcall RsCreate(int ColNum);
void _stdcall RsOpen();
void _stdcall RsNewTable(int ColNum);

void _stdcall RsAddRow();
void _stdcall RsSaveRow();
int _stdcall RsFetchRow();
void _stdcall RsClose();

void _stdcall RsSetCol(int Col, char *Vlu);
void _stdcall RsGetCol(int Col, char *Vlu);
void _stdcall RsGetCol1(int Col, char *Vlu, int Num);
void _stdcall RsSetColNameList(char *ColName);

int _stdcall RsGetRowNum();
int _stdcall RsGetColNum();
int _stdcall RsGetTableColNum(int nt);
int _stdcall RsGetTableRowNum(int nt);

int _stdcall InitEasyCics();
void _stdcall BeginWrite();
void _stdcall ExitEasyCics();
/* The tag char must be different, and not '\0', '&', '=', '%', ',' */
void _stdcall SetRegionTag( char a, char b );

void _stdcall SetCurrentCA(char *new_ca);
int _stdcall MergeCA(char *ca);
int _stdcall CallProgram(char *prg);
int _stdcall CallProgramSys(char *prg, char *sys_id);
int _stdcall CallProgramXCTL(char *prg);
int _stdcall StartTran(char *tran, char *para, short ln);
int _stdcall StartTranSys(char *tran, char *para, short ln, char *sys_id);
int _stdcall RetrievePara(char *para, short *pln);

int _stdcall CicsCommit();
int _stdcall CicsRollBack();
void _stdcall CicsAbend(char *Abcode);

int _stdcall GetCommLen();


/*Advanced Functions*/
void _stdcall InitEIB();
void _stdcall PrintStatus(char *statusbuf);
void _stdcall BinaryToAscii(char *bs, char *as, int n);
int _stdcall AsciiToBinary(char *as, char *bs);

void _stdcall SaveBlock(char *blk, int size);
void _stdcall SaveBlockUnit(char *blku);
void _stdcall SetBlockSize(int size);

void _stdcall InitUpload(char *fpath, int maxlen);

void _stdcall GetUniqueId(char *UniqueId);
void _stdcall GetUniqueId6(char *UniqueId);
unsigned long _stdcall GetUniqueNum();

int _stdcall CicsLock(char *LockPtr, int IfPtr, int IfDsync);
int _stdcall CicsUnLock(char *LockPtr, int IfPtr);
#define CicsLockId(LockPtr) CicsLock(LockPtr, 0, 0)
#define CicsUnLockId(LockPtr) CicsUnLock(LockPtr, 0)
int _stdcall CicsLockTest(char *LockPtr, int IfPtr);	/* 0: means NO lock */
#define CicsLockIdTest(LockPtr) CicsLockTest(LockPtr, 0)/* 0: means NO lock */

void _stdcall CicsSleep(int nSeconds);

void * _stdcall CicsMalloc(int nBytes, int IfShared);
void _stdcall CicsFree(char *pMem);
#define CicsMallocLocal(nBytes) CicsMalloc(nBytes, 0)
#define CicsMallocShared(nBytes) CicsMalloc(nBytes, 1)

void _stdcall SaveToCwa(int nPos, void *pMem, int len);
void _stdcall LoadFromCwa(int nPos, void *pMem, int len);

int _stdcall WriteTdq( char *name, char *data, short len );
int _stdcall ReadTdq( char *name, char *data, short len, int seconds );
int _stdcall DelTdq( char *name );

int _stdcall WriteTsq( char *name, char *data, short len );
int _stdcall WriteTsqInMem( char *name, char *data, short len );
int _stdcall ReadTsq( char *name, char *data, short len, short item_num );
int _stdcall DelTsq( char *name );
int _stdcall ModifyTsq( char *name, char *data, short len, short item_num );


/*************************************************************************/
#ifdef  __cplusplus
}
#endif
/*******************************************************************************/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?