Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
There MUST be a better method of coding SQL in a CL source member.
<<SNIP>>
In the example below, is there a simple way to copy everything
between the "/*" to a source member and run that?
Or any other method to keep the CL together with the SQL commands in
the same member - without using quotes or tcat's.
Something like the following; i.e. would like to run this nice
readable SQL command in CL without the quotes and tcat's:
PGM
DCL &SQLCMD type(*CHAR) len(1000)
//start SQL
/*
create table qtemp/sqltemp1
(fld1 char(1)
,fld2 char(1)
,fld2 char(1)
,client numeric(6,0)
)
/*
RUNSQL
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 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.