VARCHAR and lengths in Pro*C
From: Alan Beal <alanb_at_VNET.IBM.COM>
Date: Fri, 23 Sep 94 20:58:57 EDT
Message-ID: <19940923.180555.124_at_almaden.ibm.com>
Date: Fri, 23 Sep 94 20:58:57 EDT
Message-ID: <19940923.180555.124_at_almaden.ibm.com>
I am trying to figure out if I can declare a VARCHAR host variable
in Pro*C where the length is determined by a define rather than
hard-coded. Is this possible? I am able to do this:
VARCHAR field1[20];
but not:
#define f1_len 20
...
VARCHAR field1[f1_len];
Any hints?
Alan Beal alanb_at_lfs.loral.com (607)751-2026Received on Sat Sep 24 1994 - 02:58:57 CEST