Hi, Justin,

Are you talking about the "File level Identifier"?  

  Data Base File Attributes                                                
    Externally described file . . . . . . . . . :            Yes           
    File level identifier . . . . . . . . . . . :            0960411171319 

The compilers do not care about that, as far as I can tell.

You might be thinking of this attribute:

 Record Format List                              
                        Record  Format Level     
  Format       Fields   Length  Identifier       
  DATAR            13      179   368C6ECBB9F6A    

DSPPGMREF of a *PGM will show you that for the files it uses, for RPG programs using "native" I/O:

 Number of record formats  . . . . . . . . :           1        
   Record Format      Format Level Identifier     Field Count   
     DATAR                  368C6ECBB9F6A                13      
                                                                
For embedded SQL, there is no record format level checking, as SQL does its own checking on a column-by-column or field by field basis, to ensure that the data from the table can be mapped into and will fit in the corresponding host variables.

Hope that helps,

Mark S. Waterbury

On Wednesday, April 2, 2025 at 01:12:47 PM EDT, Justin Taylor <jtaylor.0ab@xxxxxxxxx> wrote:

Given an RPGLE *PGM object, is there a way to see the file ID it expects
for a given File spec?

DSPFD on the *FILE will give its ID.  I'm for something similar for a *PGM.

Thanks

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2025 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.