×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I assume EXECUTE is a home-built command that executes arbitrary SQL.
With that assumption, here's an example you ask for:
EXECUTE SQL('CREATE TABLE QTEMP/WORKFILE
(FIELD1 CHAR (10 ) NOT NULL WITH DEFAULT,
FIELD2 INT NOT NULL WITH DEFAULT,
FIELD3 DECIMAL (5 , 2) NOT NULL WITH DEFAULT)')
Elvis
Celebrating 10-Years of SQL Performance Excellence on IBM i5/OS and OS/400
http://centerfieldtechnology.com/training.asp
-----Original Message-----
Subject: Creating a work file with SQL in CL
Could someone give me an example of creating an empty file with SQL in a CL
program?
Something like: EXECUTE SQL('CREATE TABLE QTEMP/WORKFILE............blah,
blah, blah.....
I keep getting a QRY2211 error no matter what i try....
TIA,
Bob Voltz
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.