From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2a4afcecfcd36c80,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1989-11-08 05:42:12 PST Path: gmdzi!unido!mcsun!uunet!snorkelwacker!apple!agate!ucbvax!cs.uoregon.edu!liang From: liang@cs.uoregon.edu Newsgroups: comp.sys.dec Subject: INGRES Problem Message-ID: <8911080743.AA06602@spencer.cs.uoregon.edu> Date: 8 Nov 89 07:43:30 GMT Sender: daemon@ucbvax.BERKELEY.EDU Posted: Wed Nov 8 08:43:30 1989 I used to program in ESQL on INGRES under VMS. Now I have to write a program in EQUEL on INGRES. But I seems to have trouble about the statement ## include filename. For example: ===================================================================== Let file datatype.qp to be a include file. CONST name_len = 20; TYPE nametype = PACKED ARRAY[1..name_len] OF CHAR; ==================================================================== ##PROGRAMM TEST (INPUT, OUTPUT) ## INCLUDE 'datatype.qp' ## VAR ## lastname: nametype; : : : When I preprocess this program with eqp test.qp, I always got a error message "nametype is undefined". But if I change my include file to ## CONST name_len = 20; ## TYPE ## nametype = PACKED ARRAY [1..name_len] OF CHAR. the preprocessor eqp passes the program. My question is whether there is a way that I won't have to change my include file datatype.qp . If someone know it, please drop me a e-mail. Many thanks in advance STEVE =========================================================================== e-mail : liang@cs.uoregon.edu