From an ILE COBOL program, the Retrieve File Description (QDBRTVFD) API can be used. Externally, from the OS/400 operating system, the Display File Description (DSPFD) command can be used. A query of the system cross-reference file (QADBFCST) will also show if a constraint has been added to a file.
Both the Retrieve File Description (QDBRTVFD) API and the Display File Description (DSPFD) command retrieve the file definition along with all of the constraints that have been added.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.