× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Sounds like the right track.  I have something similar in
my SPLTOOL utilty call List Spooled Filed Attributes
(SPLATT).  It will list spooled file entries to a physical
file using a host of parameters for selection.

So you could get a list of all spooled files in an output
queue, read through the PF created for those that are *HLD,
and then release them.

Sounds like you're on the right track.

You could get most of the attributes from the QUSLSPL API,
then skip using the QUSRSPLA API.  But the QUSLSPL requires
the use of key entries to get the attributes in question.
 Not very easy, but after you've done it once, it's pretty
simple.

Brad

On Tue, 31 Aug 2004 08:10:21 -0500
 Justin Houchin <justinh@xxxxxxxxxxxxx> wrote:
> Hi everyone,
>    I am creating a new program that will search specified
> output queues 
> by usrdta for* held* spool files and release the spool
> file for printing. I have planned on using the following
> API's to do this:
>     QUSCRTUS -- Create User Space                     
>     QUSLSPLF -- List Spooled Files                   
>     QUSRTVUS -- Retrieve User Space                   
>     QUSRSPLA -- Retrieve Spooled File Attributes     
>     QUSDLTUS -- Delete User Space
>   I will pass the spool attributes to a CL that will call
> the RLSSPLF 
> command.
> 
> Am I heading in the right direction, or can this be done
> an easier way?
> 
> Thanks,
> Justin Houchin
> --
> This is the RPG programming on the AS400 / iSeries
> (RPG400-L) mailing list
> To post a message email: RPG400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit:
> http://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: RPG400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/rpg400-l.
> 

Bradley V. Stone
BVS.Tools
www.bvstools.com

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-2024 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].

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