Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The List Spooled Files (QUSLSPL) API

Status
Not open for further replies.

Vstar1100

Programmer
Oct 20, 2003
4
US
I am having a problem to get the The List Spooled Files (QUSLSPL) API to work correctly in batch. When I run it interactively it works fine.

Is there anything special you have to do with API's when they run in batch? I am running it for the '*' job so that it only retrieves spool files for the current job.

JK
 
I've never tried to use it for current job before but when I change my code to set the user to blank and the qualified job name to '*' I get the following error

CPF34C2 Too many selection criteria specified

Any ideas what parameters I'm specifying which I shouldn't? If you can give me the parameters you are using I'll check what it gives me. My existing (working) utility is only interactive but allows selection of User, OutQ, Forms and Date From/To. I've also added F13=Repeat (as per STRPDM) which is handy when you are trying to delete 100 spool files!

PeteJ
(Contract Code-monkey)

It's amazing how many ways there are to skin a cat
(apologies to the veggies)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top