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.