×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




To all,

 

We have this process that uses the DECLARE GLOBAL TEMPORARY TABLE
statement to "model" a work file to QTEMP.  The work file is defined
with date fields, packed fields, keyed, etc.   In our program we have
referenced this work file on the F-spec with EXTFILE('QTEMP/WORKFILE')
and USROPN.  After running the SQL statement to create the temporary
table, open the work file in the program and get a record format level
check error (CPF4131).  

 

I know of ways around this issue and I'm not necessarily looking for
other solutions like CRTDUPOBJ or using FETCH instead of native I/O.
Those are options which we are keeping in mind.  We just want to find
the reason this happens.

 

In the model file if I define a date field I get the level check error.
If I remove the date field or change its data type to something else I
do not receive the level check error.   We are wondering why is a file
created in QTEMP with DECLARE GLOBAL TEMPORARY TABLE and having date
fields would end up causing a level check issue?

 

 

Code links:

http://code.midrange.com/index.php?id=4f2d1b6615

http://code.midrange.com/index.php?id=915a0df534

 

Thanks, Matt

 


This thread ...

Follow-Ups:

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

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.