Is there any way to directly match reports generated by the FNDSTRPDM command to a physical file?
One way is to read the spool with in the program, but this creates confusion because there are two reports generated by this command. I don't have the Spool file number looping around all the spool files. It might be possible, but it becomes very complex.
The FNDSTRPDM doesn't have to print two reports unless you want it to. You could easily accomplish what you are trying to by doing the FNDSTRPDM in a CL program. By using overrides and the *LAST option on the CPYSPLF and the DLTSPLF commands, you can easily manage your spool files without having to do complex looping through a lot of spool files. Here is an example piece of CL code that illustrates what I'm talking about.
OVRPRTF FILE(QPUOPRTF) HOLD(*YES) FNDSTRPDM STRING(&STRING) FILE(MYLIB/QRPGLESRC) MBR(*ALL) OPTION(*NONE) PRTMBRLIST(*ALL) PRTRCDS(*ALL) CPYSPLF FILE(QPUOPRTF) TOFILE(MYLIB/MYFILE) SPLNBR(*LAST) DLTSPLF FILE(QPUOPRTF) SPLNBR(*LAST)
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.
Dig Deeper on Performance
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.