|
Hi, API list work like that, you have a header and some detailed infos. The header is always the same and give you the start position, and the number of occurences. You can find a detailled doc here : http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp (programming, API) In your case, you will get a list of spools, and for each of them you can use command like CHGSPLF, DLTSPLF ... and so on very easy. On our iserie, i get the spool list (about 20 000 spools) in less than 5 secondes. (model 520) If you wnat some code, i cand send a piece of. ----- Original Message ----- From: <daparnin@xxxxxxxxxxxxxx> To: <rpg400-l@xxxxxxxxxxxx> Sent: Wednesday, March 21, 2007 2:55 PM Subject: Sample Code for OUTQ Processing? / API Confusion
Can anybody point me to some sample code for processing entries in an output queue? Basically, I want to create an RPG program that reads through entries in an OUTQ and if certain criteria such as the file
name
or user data attributes are matched, the spool file will get moved to a different OUTQ. I'm new to using API's and user spaces. From the reading that I've
done
in the midrange.com archives and Scott Klement's web site it looks like you use an API to generate a list which returns a pointer to a user
space.
I believe that I need the QUSLSPL API to generate that list. Scott
has
sample code to process a list generated by the List Members API. If I
am
understanding this correctly the user space is just like a big flat
file
and you read through it by incrementing an offset from the starting address of the user space. Is this how list processing works? Am I on the right track? Is it time for a vacation? Dave Parnin -- Nishikawa Standard Company Topeka, IN 46571 daparnin@xxxxxxxxxxxxxx -- 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.
As an Amazon Associate we earn from qualifying purchases.
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.