Hi Richard,

The only reason i don't use this technique, is that you are not always sure that a spol was produced by the pgm. and in this case, if you mail the last one (for example) it is not necessary the one you are expecting.
I guess if the user uses the attention key or system request key to 
interrupt your program and run another one that generates a spooled file, 
you could end up mailing the wrong one, though I think that's an unusual 
circumstance. Especially if you specify the spooled file name.
However, I do agree that if you know the spooled file number, it's better 
to use it. When you don't, you use something like *LAST (which is -1 for 
the QUSRSPLA API).





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2025 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 copyright@midrange.com.

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.