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



On Tuesday 01 July 2003 21:20, WyvernGod@xxxxxxx wrote:
> ok this is my question.. well one of a couple questions.... I'm trying
> to find informaton on how to get a list of the outq's and the spool
> files in each one and then the info on each spool file aka job number
> file number user data(a must have for what i'm doing) and all that
> other stuff..   A friend said he;s seen it done in rpg but soemoen else
> said the best way was cl both useing api's  so anyway.. if anyone can
> give me some insight as to what to do or where to ask just let me
> know...
>
> my gold is to take selected spool files and convert them into physical
> files.. somethign i can already do.. just my problem is geting a set
> list of all the files and their info so i "can" do it automaticly

Hi Chris

If you want to look at an RPG solution, there's my WRKUSROUTQ utility that 
uses APIs to get lists of output queues (QSPROUTQ) and spooled files 
(QUSLSPL). It should give a few ideas on how to reach your goal. Download 
the source code from http://www.dbg400.net/usroutq.html and have a look 
at DBG186R4 for getting a list of *OUTQs and DBG188R4 for the spool 
files.

It is possible to do a lot of it in CL, though not necessarily easy. Tom 
Liotta has written a number of CL routines and command wrappers for 
dealing with user spaces (that you need for the list APIs) that would 
simplify the task - http://zap.to/tl400

Regards, Martin
-- 
martin@xxxxxxxxxx  AIM/Gaim: DBG400dotNet  http://www.dbg400.net   /"\
DBG/400 - DataBase Generation utilities - AS/400 / iSeries Open    \ /
Source free test environment tools and others (file/spool/misc)     X
Debian GNU/Linux | ASCII Ribbon Campaign against HTML mail & news  / \

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.