A simple means to handle the same SPLFNAME is to issue a DLTSPLF SPLNBR(*LAST) after processing the last spooled file identified by the selection. Then whatever spooled file is previous to what was most recently known as *LAST becomes the new SPLNBR(*LAST); i.e. after DLTSPLF CUSTRPT SPLNBR(*LAST) effects deletion of splnbr=67, the WRKSPLFA CUSTRPT SPLNBR(*LAST) will show spool number 000066 in the described scenario. Obviously not the best option, if the spools need to remain unmolested.

Regards, Chuck

On 24 Apr 2012 07:14, Stone, Joel wrote:
BIGJOB creates 3 different spool files with the same name - CUSTRPT.
Today the spool file numbers happen to be #'s 65,66, and 67.

In my email pgm, I can only select *LAST (which would only send
report # 67), or I can select a specific #, such as 65 or 66 or 67.
But I don't know the number.

What is the best way to handle this?

Name each spool file differently? Then I can name the three files
CUSTRPT1, CUSTRPT2, and CUSTRPT3, and select each one.

Or, is there a way to retrieve the *LAST spool file number, and the
(*LAST minus 1) spool file, and (*LAST minus 2) spool file?

Or a better method?

I see an API coming my way. Is there a SIMPLE way to do this - ie
not using an API?

For example, RTVSPLFA (*LAST minus 2) ?? I have TAATOOLS if that

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].