Hello there, here goes a beginner's question
If I want to list all the programs that start with the string XYZ from a library, to an outfile, I do the following command:
DSPOBJD OBJ(MYLIB/XYZ*) OBJTYPE(*PGM) OUTPUT(*OUTFILE) OUTFILE(QTEMP/TEST)
What I need is the same thing, but for the source members of a source physical file, e.g. all the sources that starts with the XYZ string from a QRPGSRC. I stumbled across the following command:
DSPFD FILE(MYLIB/QRPGSRC) TYPE(*MBRLIST) OUTPUT(*OUTFILE) OUTFILE(QTEMP/TEST)
It lists all the source members from MYLIB/QRPGSRC, I could then do a RPG to select the ones which start with XYZ. The problem is, this way is too slow! I have source physical files that contains up to 10000 sources. So my question is: Is there a faster way to do this? Faster as the DSPOBJD command?
Hope I was clear enough.
If I want to list all the programs that start with the string XYZ from a library, to an outfile, I do the following command:
DSPOBJD OBJ(MYLIB/XYZ*) OBJTYPE(*PGM) OUTPUT(*OUTFILE) OUTFILE(QTEMP/TEST)
What I need is the same thing, but for the source members of a source physical file, e.g. all the sources that starts with the XYZ string from a QRPGSRC. I stumbled across the following command:
DSPFD FILE(MYLIB/QRPGSRC) TYPE(*MBRLIST) OUTPUT(*OUTFILE) OUTFILE(QTEMP/TEST)
It lists all the source members from MYLIB/QRPGSRC, I could then do a RPG to select the ones which start with XYZ. The problem is, this way is too slow! I have source physical files that contains up to 10000 sources. So my question is: Is there a faster way to do this? Faster as the DSPOBJD command?
Hope I was clear enough.
Comment