× 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.



There's a DLTOLDSPLF command on the RPG IV website.
www.rpgiv.com/downloads
Not sure if its what you want.

-Bob Cozzi
www.i5PodCast.com
Ask your manager to watch i5 TV


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On
Behalf Of daparnin@xxxxxxxxxxxxxx
Sent: Wednesday, March 21, 2007 8:56 AM
To: rpg400-l@xxxxxxxxxxxx
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

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.