× 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.



Create or invoke a stored procedure which performs the "*NLVLIBL/CHGPF FILE(&L/&N) SRCFILE(*NONE) REUSEDLT(*NO)" after the CREATE TABLE request. To prevent having a literal in both CREATE and passed as a parameter in the CALL, issue the CREATE TABLE in the same stored procedure, followed by the CHGPF request. Note that the special register CURRENT SCHEMA should serve as &L for when there is no library qualification on the CREATE TABLE statement, and the API to convert an SQL long table name to its short name could enable the standard SQL naming for the TABLE name parameter; i.e. the &N in CHGPF FILE(&N) must be a system object name.

An example invocation might be the SQL:

CALL CrtTblReuseNo('TableName', CURRENT SCHEMA)

Regards, Chuck

Kurt Anderson wrote:
Is there a REUSEDLT(*NO) equivalent in SQL's Create Table?
(I didn't have any luck in finding one on the web.)

We're at v5r4.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.