Re: Query/Program Problem by Keht
Keht
Wed Jun 23 14:28:55 CDT 2004
do you know if i can pull the string out of a table? the string was too long
so i had to put it in a memo field, somthing like
create table rec03 + table.field
or is there someway to make the string bigger? put in mem or somthing like
that?
"Zeke Galama" <remove_galama_remove@telia.com> wrote in message
news:eDzNFMVWEHA.1380@TK2MSFTNGP12.phx.gbl...
> Hi again.
> The problem was that you should use macro substitution instead of ( ) when
> using create table. Check this:
>
> cDef = 'MyTable (row c(80))'
> create table &cDef
> *** Works
>
> cDef = 'MyTable (row c(80))'
> create table (cDef)
> *** syntax error
>
> It's clear where the problem is, but maybe someone else can tell why?
>
> /Zeke
>
>
>
> "Keht" <NoVirus@IHateScriptKiddies.com> wrote in message
> news:%23d%23tzIVWEHA.1144@TK2MSFTNGP10.phx.gbl...
> > Thanks, worked great, you would think that the original way would work
> also
> > but who knows? I am prob not using somthing correctly..
> >
> > "Zeke Galama" <remove_galama_remove@telia.com> wrote in message
> > news:OGruEGVWEHA.4024@TK2MSFTNGP09.phx.gbl...
> > > This works:
> > > CLOSE ALL
> > > SET SAFETY OFF
> > >
> > > xFn = "REC03.XLS"
> > > xTn = " REC03"
> > > xTs = ""
> > >
> > > xTs = " ("
> > > xTs = xTs + "region c(2), hospcd c(2), filler0 c(2), acct c(11),
actype
> > > c(1), acctsubtp c(1), contind c(1),"
> > > xTs = xTs + "filler1 c(1), rectp c(1), filler2 c(3), createdt c(6),
> > filler3
> > > c(4)"
> > > xTs = xTs + ")"
> > >
> > > cTblDef = xTn + xTs
> > >
> > > CREATE TABLE &cTblDef
> > > SET SAFETY ON
> > >
> > > /Zeke
> > >
> > >
> > >
> > >
> > > "Keht" <NoVirus@IHateScriptKiddies.com> wrote in message
> > > news:OoMVv6UWEHA.1488@TK2MSFTNGP09.phx.gbl...
> > > > I am getting a Syntax error on the following code... Anyone see
whats
> > > wrong?
> > > >
> > > > CLOSE ALL
> > > > SET SAFETY OFF
> > > >
> > > > xFn = "REC03.XLS"
> > > > xTn = " REC03"
> > > > xTs = ""
> > > >
> > > > xTs = " ("
> > > > xTs = xTs + "region c(2), hospcd c(2), filler0 c(2), acct c(11),
> actype
> > > > c(1), acctsubtp c(1), contind c(1),"
> > > > xTs = xTs + "filler1 c(1), rectp c(1), filler2 c(3), createdt c(6),
> > > filler3
> > > > c(4)"
> > > > xTs = xTs + ")"
> > > >
> > > > CREATE TABLE + (m.xTn) + (m.xTs)
> > > >
> > > > SET SAFETY ON
> > > >
> > > > Thanks in advance.
> > > >
> > > >
> > >
> > >
> >
> >
>
>