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



I suggest you go to the V5R4 Information Center and look under 
Programming/APIs/APIs by category/Print/General Print APIs and then scroll 
down to Spool File Creation 
(http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzalu/rzaludataq.htm).
 
 From there look at Environment variable data queue support.  Basically 
you can have a message sent to a *DTAQ when a spool file is created.  The 
*DTAQ message includes the information you are asking for and you could 
then write this data to your file.  Keep in mind when writing your program 
though that these spooled reports might be printed and/or deleted so just 
because your file has the information doesn't mean users will always be 
able to select off of your selection screen and get the report.

An alternative approach would be to use APIs such as List Spooled Files 
(QUSLSPL) or Open List of Spooled Files (QGYOLSPL) to see what reports are 
currently on your system.  This approach would eliminate the need for you 
to maintain a file tracking created spooled files though you might still 
encounter the small timing window of someone deleting/printing off the 
spool file after the API has run and before the operator has selected the 
spooled file for display.

There are other ways also, but the above can work without having to touch 
the report generating program(s).

Hope this helps,
Bruce




"BILL FRANCIS" <bill@xxxxxxxxxxxxxxxxxxxxx> 
Sent by: midrange-l-bounces+bvining=us.ibm.com@xxxxxxxxxxxx
11/15/2006 03:31 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
<midrange-l@xxxxxxxxxxxx>
cc

Subject
***** GETTING SPOOLED FILE INFORMATION






When generating a report I want to output the FILE, JOBNAME, USER, JOB#, 
and
SPLNBR to a physical file so I can later create a program that lets users
see reports simply by running the DSPSPLF command on their selection.

Does anyone know how to easily obtain this data?

-Bill


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.