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



Douglas,

I would speculate that you have bad data in the sub file detail fields,
probably below x'20' (which is display attribute normal or color Green).
Check each field just before you write the sub file detail record.  If the
debugger shows you nothing but blanks or some weird value then use 
        "ev FieldName :x LenOfFieldTimes2" 
(where FieldName and LenOfFieldTimes2 are replaced by you).   
Cross reference the values that you expect with what is being written to the
detail record.

Thank you,
Matt Tyler
WinCo Foods, LLC
mattt@xxxxxxxxxxxxxx


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Douglas W. Palme
Sent: Wednesday, July 27, 2005 9:56 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: AW: embedded sql - Continued

The SQL selects are working fine now, however when I try to display the 
subfile I get a session error.  Here is the error message:

Cannot read record  from file SPECGAS at device QPADEV0003

The data is being written to the specsfl and the variables and RRN are 
working correctly, it appears though that when I exfmt on the specctl that 
it errors.

I thought at first that I might have had the SFLSIZ and SFLPAG values set 
incorrectly for 10 records...so I advanced them to 15 and 14 respectively 
with no success.

At this point I am at a loss.

Here is the dds for the subfile:

 A                                      DSPSIZ(24 80 *DS3)     
 A          R SPECSFL                   SFL                    
 A*%%TS  SD  20050726  134607  DPALME      REL-V5R3M0  5722-WDS
 A            DCUSTNO        9S 0O  7  2                       
 A            DCUSTNAME     17A  O  7 13                       
 A            DSALES         9Y 2O  7 32EDTCDE(1)              
 A            DMARGIN        9Y 2O  7 60EDTCDE(1)              
 A            DPCT           5Y 2O  7 74EDTWRD('   .  ')       
 A            DCOST          9Y 2O  7 46EDTCDE(1)              
 A          R SPECCTL                   SFLCTL(SPECSFL)        
 A*%%TS  SD  20050727  103729  DPALME      REL-V5R3M0  5722-WDS
 A                                      CF12(12 'F12=CANCEL')      
  A                                      OVERLAY                
 A  51                                  SFLDSP                 
 A  52                                  SFLCLR                 
 A                                      SFLSIZ(0015)           
 A                                      SFLPAG(0014)           
 A                                  1  3DATE                   
 A                                      EDTCDE(Y)              
 A                                  1 30'CWTS'
A                                  1 70USER                       
A                                  2 28'SPEC GAS TOP TEN CUSTOMERS
A                                      COLOR(WHT)                 
A                                  3 35'Year to Date'             
A                                  5  4'CUST NO'                  
A                                      COLOR(WHT)                 
A                                  6  2'==========================
A                                      ===========================
A                                      ========='                 
A                                      COLOR(WHT)                 
A                                  5 14'CUSTOMER NAME'            
A                                      COLOR(WHT)  
A                                  5 39'SALES'     
A                                      COLOR(WHT)  
A                                  5 66'MARGIN'    
A                                      COLOR(WHT)  
A                                  5 77'PCT'       
A                                      COLOR(WHT)  
A                                  5 54'COST'      
A                                      COLOR(WHT)  
A          R FOOTER                                
A*%%TS  SD  20050726  103601  DPALME      REL-V5R3M0  5722-WDS
A                                      OVERLAY                
A                                 23 70'F12=CANCEL'           
A                                      COLOR(BLU)             
        

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.