Unix Technical Forum

Informix Script Language

This is a discussion on Informix Script Language within the Informix forums, part of the Database Server Software category; --> Can we use SPL logic like If .. then .. End if statements in SQL Informix Script. What we ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 07:37 AM
alexis.kyriakides@gmail.com
 
Posts: n/a
Default Informix Script Language

Can we use SPL logic like If .. then .. End if statements in SQL
Informix Script.

What we are trying to achieve is setting a variable in a script and
base on the value of this variable to create an index on different
tables.

We wouls like to know if there are such features in version 9.4

Thanx
Alexis

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 07:37 AM
Jonathan Leffler
 
Posts: n/a
Default Re: Informix Script Language

alexis.kyriakides@gmail.com wrote:
> Can we use SPL logic like If .. then .. End if statements in SQL
> Informix Script.


No.

> What we are trying to achieve is setting a variable in a script and
> base on the value of this variable to create an index on different
> tables.


That would require dynamic SQL in some form - SPL does not support
that unless you add the EXEC Datablade.

> We would like to know if there are such features in version 9.4


No - nor in 10.00.

Check out Marco's 4GLWORKS (http://www.4glworks.com/4glworks.htm).

(SQLCMD does not yet have such capabilities either. At least, not
directly. You could arrange to have one sqlcmd generate the data and
pipe the output into a second sqlcmd (possibly with an intervening
process such as sed or perl fixing up the syntax), but it is not
exactly what you were hoping for.

--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:37 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com