tldm-universe/Ardent/UV/gcidir/include/atvars.h
2024-09-09 17:51:08 -04:00

186 lines
6.0 KiB
C
Executable File

#ifndef h_atvars
#define h_atvars
/******************************************************************************
*
* Definition of UniVerse '@' variables
*
* Module %M% Version %I% Date %H%
*
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
* This is unpublished proprietary source code of Ardent Software Inc.
* The copyright notice above does not evidence any actual or intented
* publication of such source code.
*
*******************************************************************************
*
* Maintenence log - insert most recent change descriptions at top
*
* Date.... GTAR# WHO Description.........................................
* 10/14/98 23801 SAP Change copyrights.
* 05/02/97 20453 CSM Remove trigger @variables
* 04/11/96 18162 MJC Added @SQLPROC.NAME, @SQLPROC.TX.LEVEL, @SQL.DATE, @SQL.TIME,
* @CASCADE, @TRIG.SCHEMA, @TRIG.TABLE, @TRIG.EVENT,
* @TRIG.ASSOC, @TRIG.ASSOC.EVENT, @TRIG.ID, @TRIG.REC,
* @TRIG.ID.OLD, @TRIG.REC.OLD, @TRIG.COUNT, @TRIG.CHAIN.CASC
* 03/18/96 18162 MJC Added @HENV, @HDBC, @HSTMT
* 04/27/95 16446 PVW Added @TRANSACTION.LEVEL
* 06/21/94 13836 RM Added @ISOLATION
* 03/08/94 12297 JSW Added @ABORT.CODE, @PATH for PI/open compatability.
* 11/23/92 9899 JKW Add @AUTHORIZATION
* 05/21/92 8806 JKW Added @TRANSACTION.ID
* 03/18/92 9305 DPB Added @SCHEMA
* 09/13/91 8710 RM Support for SQL global error vars
*
*****************************************************************************/
#include "DATUM.h"
#define NUM_ATVARS 80
#define AT_DEF struct at_def
struct at_def
{
STRING name;
STRING synonym;
char writable;
char recursive;
};
/* use TABS 8 when editing this file */
#define atn_WHO 0
#define atn_LOGNAME 1
#define atn_USERNO 2
#define atn_COMMAND 3
#define atn_SENTENCE 4
#define atn_PARASENTENCE 5
#define atn_SYSTEM_RETURN_CODE 6
#define atn_SYS_BELL 7
#define atn_LEVEL 8
#define atn_TIME 9
#define atn_DATE 10
#define atn_DAY 11
#define atn_MONTH 12
#define atn_YEAR 13
#define atn_FILENAME 14
#define atn_RECORD 15
#define atn_ID 16
#define atn_USR_RETURN_CODE 17
#define atn_TERM_TYPE 18
#define atn_NB 19
#define atn_ND 20
#define atn_NI 21
#define atn_NV 22
#define atn_NS 23
#define atn_ANS 24
#define atn_CONV 25
#define atn_DICT 26
#define atn_FORMAT 27
#define atn_HEADER 28
#define atn_STDFIL 29
#define atn_OPTION 30
#define atn_0USER 31
#define atn_1USER 32
#define atn_2USER 33
#define atn_3USER 34
#define atn_4USER 35
#define atn_0RECUR 36
#define atn_1RECUR 37
#define atn_2RECUR 38
#define atn_3RECUR 39
#define atn_4RECUR 40
#define atn_SELECTED 41
#define atn_TTY 42
#define atn_NULL 43
#define atn_NULL_STR 44
#define atn_SQL_ERROR 45
#define atn_SQL_WARNING 46
#define atn_SQL_CODE 47
#define atn_SQL_STATE 48
#define atn_SCHEMA 49
#define atn_TRANSACTION_ID 50
#define atn_AUTHORIZATION_ID 51
#define atn_ABORT_CODE 52
#define atn_PATH 53
#define atn_TRANSACTION 54
#define atn_ISOLATION 55
#define atn_TRANSACTION_LEVEL 56
#define atn_HENV 57
#define atn_HDBC 58
#define atn_HSTMT 59
#define atn_SQLPROC_NAME 60
#define atn_SQLPROC_TX_LEVEL 61
#define atn_SQL_DATE 62
#define atn_SQL_TIME 63
#define atn_CASCADE 64
#define at_WHO ATvar[atn_WHO]
#define at_LOGNAME ATvar[atn_LOGNAME]
#define at_USERNO ATvar[atn_USERNO]
#define at_COMMAND ATvar[atn_COMMAND]
#define at_SENTENCE ATvar[atn_SENTENCE]
#define at_PARASENTENCE ATvar[atn_PARASENTENCE]
#define at_SYSTEM_RETURN_CODE ATvar[atn_SYSTEM_RETURN_CODE]
#define at_SYS_BELL ATvar[atn_SYS_BELL]
#define at_LEVEL ATvar[atn_LEVEL]
#define at_TIME ATvar[atn_TIME]
#define at_DATE ATvar[atn_DATE]
#define at_DAY ATvar[atn_DAY]
#define at_MONTH ATvar[atn_MONTH]
#define at_YEAR ATvar[atn_YEAR]
#define at_FILENAME ATvar[atn_FILENAME]
#define at_RECORD ATvar[atn_RECORD]
#define at_ID ATvar[atn_ID]
#define at_USER_RETURN_CODE ATvar[atn_USR_RETURN_CODE]
#define at_TERM_TYPE ATvar[atn_TERM_TYPE]
#define at_NB ATvar[atn_NB]
#define at_ND ATvar[atn_ND]
#define at_NI ATvar[atn_NI]
#define at_NV ATvar[atn_NV]
#define at_NS ATvar[atn_NS]
#define at_ANS ATvar[atn_ANS]
#define at_CONV ATvar[atn_CONV]
#define at_DICT ATvar[atn_DICT]
#define at_FORMAT ATvar[atn_FORMAT]
#define at_HEADER ATvar[atn_HEADER]
#define at_STDFIL ATvar[atn_STDFIL]
#define at_OPTION ATvar[atn_OPTION]
#define at_0USER ATvar[atn_0USER]
#define at_1USER ATvar[atn_1USER]
#define at_2USER ATvar[atn_2USER]
#define at_3USER ATvar[atn_3USER]
#define at_4USER ATvar[atn_4USER]
#define at_0RECUR ATvar[atn_0RECUR]
#define at_1RECUR ATvar[atn_1RECUR]
#define at_2RECUR ATvar[atn_2RECUR]
#define at_3RECUR ATvar[atn_3RECUR]
#define at_4RECUR ATvar[atn_4RECUR]
#define at_SELECTED ATvar[atn_SELECTED]
#define at_TTY ATvar[atn_TTY]
#define at_NULL ATvar[atn_NULL]
#define at_NULL_STR ATvar[atn_NULL_STR]
#define at_SQL_ERROR ATvar[atn_SQL_ERROR]
#define at_SQL_WARNING ATvar[atn_SQL_WARNING]
#define at_SQL_CODE ATvar[atn_SQL_CODE]
#define at_SQL_STATE ATvar[atn_SQL_STATE]
#define at_SCHEMA ATvar[atn_SCHEMA]
#define at_TRANSACTION_ID ATvar[atn_TRANSACTION_ID]
#define at_AUTHORIZATION_ID ATvar[atn_AUTHORIZATION_ID]
#define at_ABORT_CODE ATvar[atn_ABORT_CODE]
#define at_PATH ATvar[atn_PATH]
#define at_TRANSACTION ATvar[atn_TRANSACTION]
#define at_ISOLATION ATvar[atn_ISOLATION]
#define at_TRANSACTION_LEVEL ATvar[atn_TRANSACTION_LEVEL]
#define at_HENV ATvar[atn_HENV]
#define at_HDBC ATvar[atn_HDBC]
#define at_HSTMT ATvar[atn_HSTMT]
#define at_SQLPROC_NAME ATvar[atn_SQLPROC_NAME]
#define at_SQLPROC_TX_LEVEL ATvar[atn_SQLPROC_TX_LEVEL]
#define at_SQL_DATE ATvar[atn_SQL_DATE]
#define at_SQL_TIME ATvar[atn_SQL_TIME]
#define at_CASCADE ATvar[atn_CASCADE]
EXTERN AT_DEF ATdef[NUM_ATVARS];
EXTERN DATUM ATvar[NUM_ATVARS];
#endif /* end of atvars.h */