*/?----------------------------------------------------------------------- */?® MALLE David : exemple test existence membre de fichier via programme */ de service */-> CRTBNDRPG PGM(MYBIB/EXPMBR0001) */ SRCFILE(MYBIB/QRPGLESRC) SRCMBR(EXPMBR0001) */ DBGVIEW(*SOURCE) OUTPUT(*PRINT) REPLACE(*YES) */?----------------------------------------------------------------------- H dftactgrp(*no) actgrp(*caller) H BNDDIR('MYBNDDIR') D EntryParms PR extpgm('EXPMBR0001') D pFile 10A D pLib 10A D pMbr 10A D EntryParms PI D pFile 10A D pLib 10A D pMbr 10A **‚---------------------------------------------------- **‚ Prototypes pour test existence membres fichier **‚---------------------------------------------------- /COPY QCPYSRC,CP_TEXIST /free if ExistFileMbr(pFile:pLib:pMbr); // Fichier / Bibliothèque / Membre existe else; // Fichier / Bibliothèque / Membre n'existe pas endif; *inlr = *on; /end-free