Whatis23
4040 pts. | Sep 30 2009 7:18PM GMT
Phil is correct as per usual.
I would enter this command:
WRKSPLF SELECT(*ALL) JOB(number/user/jobname) OUTPUT(*PRINT)
CRTPF FILE(library/filename) RCDLEN(132)
CPYSPLF FILE(QPRTSPLF) TOFILE(library/filename) JOB(number/user/QPADEVxxxx)
You can then sql or qry
TomLiotta
7355 pts. | Oct 8 2009 10:26PM GMT
“…spool file count that was generated from a single job…”
That sounds like you know the name of the job that needs to be checked. I’m not sure if WRKSPLF, etc., will be reliable if you’re approaching the limits on total spooled files. The only reliable count should come from the Open List of Spooled Files (QGYOLSPL) API. Even the more common List Spooled Files (QUSLSPL) API is going to choke if the number of spooled files is larger than around 120K files or so.
Note that you wouldn’t actually have to process any data coming back from the API other than the [Total records] value from the List information parameter.
But if you know the job name, then WRKJOB JOB(jobname) OPTION(*SPLF) might be enough. If the list displays successfully, press <F18=Bottom>, then press <F11> until view #3 is shown. The last spool file number should show at the bottom of the list.
If it doesn’t crash the command, that should do it. Otherwise, the open-list API may be the only realistic choice. (I’ve seen excessive spool-file counts cause trouble, but not yet in V5Rx nor 6.1.)
Tom






