PGM PARM(&LIBRARY) DCL VAR(&LIBRARY) TYPE(*CHAR) LEN(10) /* SET UP FILE LIST OF ALL PROGRAMS REQUESTED. */ DSPOBJD OBJ(&LIBRARY/*ALL) OBJTYPE(*QRYDFN) + OUTPUT(*OUTFILE) OUTFILE(QTEMP/QRYLIST) OVRDBF FILE(QRYLIST) TOFILE(QTEMP/QRYLIST) CRTSRCPF FILE(QTEMP/QQRYSRC) OVRDBF FILE(QQRYSRC) TOFILE(QTEMP/QQRYSRC) /* RUN THE QUERY X-REF ROUTINE. */ CALL PGM(QRYXREFR1) ENDPGM RETURN-- MartinRowe - 07 Dec 2010