What was the name of the last spool file my program created? Here is how to determine that.

I had a problem recently where because of some old programs with built-in O-specs I didn’t really know what the name of the spool file generated is in CL. I found this API that can figure that out for you. Here is how to use it. First declare your variables: /* QSPRILSP Fields */ DCL […]