I'm using QCMDCHK to allow prompting for a command in the middle of an RPGLE program, and I'm running across a problem. Sometimes, the commands in question might not be in the current library list, so the library might be explicitly defined:
SAMPLELIB/WRKTMPCMD
Where do I put the question mark, when passing to QCMDCHK? I've tried ?SAMPLELIB/WRKTMPCMD; I've tried SAMPLELIB/?WRKTMPCMD. Both give me errors. If I leave the library off, ?WRKTMPCMD works -- but only if the WRKTMPCMD happens to be in the library list.
Any ideas? I'm coming out of an RPGLE, but that shouldn't matter.
SAMPLELIB/WRKTMPCMD
Where do I put the question mark, when passing to QCMDCHK? I've tried ?SAMPLELIB/WRKTMPCMD; I've tried SAMPLELIB/?WRKTMPCMD. Both give me errors. If I leave the library off, ?WRKTMPCMD works -- but only if the WRKTMPCMD happens to be in the library list.
Any ideas? I'm coming out of an RPGLE, but that shouldn't matter.
Comment