This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).
We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:
Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,
Post an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.
IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.
ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.
IBM Power Systems Development
Another approach would be to leverage the power of IBM SQL service.
This will not give you the whole spool file to read, but will give you the name, spool file number and the row and row number where the search string match, just replace MY_LIB, MY_OUTQ, my_search_string and the time fram you want to search:
select O.CREATE_TIMESTAMP,
O.JOB_NAME,
O.SPOOLED_FILE_NAME,
O.FILE_NUMBER,
O.USER_DATA,
S.ORDINAL_POSITION,
S.SPOOLED_DATA
from table (
QSYS2.OUTPUT_QUEUE_ENTRIES('MY_LIB', 'MY_OUTQ', 'NO')
) O,
lateral (
select ORDINAL_POSITION,
SPOOLED_DATA
from table (
SYSTOOLS.SPOOLED_FILE_DATA(
JOB_NAME => O.JOB_NAME, SPOOLED_FILE_NAME => O.SPOOLED_FILE_NAME,
SPOOLED_FILE_NUMBER => O.FILE_NUMBER)
)
) S
where S.SPOOLED_DATA like '%my_search_string%'
and O.CREATE_TIMESTAMP between
'2023-05-08 20:21:00.000000' and '2023-05-10 20:00:00.000000';
1. Open File Explorer.
2. Navigate to the folder where you downloaded the spool files.
3. Click inside the search bar next to the location bar.
4. Enter an item you want to find and then Enter.
5. File Explorer will show you the files it found with that item.
While we understand the value of your Idea, since there is already a reasonable solution available, we do not plan on implementing this Idea at this time.
IBM Power Systems Development
Hello, did you try the dedicated API List Spooled Files (QUSLSPL) API ?
here is some RPGLE code from my own utility to cleanup old spool files
//‚List Spooled Files (QUSLSPL) API
d quslspl pr extpgm('QUSLSPL')
d user_space 20 const
d Format 8 const
d UserName 10 const
d OutqName 20 const
d FormType 10 const
d UserData 10 const
//‚Optional Parameter Group 1:
d Error_Code 256 options(*nopass:*varsize)
//‚Optional Parameter Group 2
d JobName 26 options(*nopass) const
d Key 10i 0 options(*nopass) const
d keyCount 10i 0 options(*nopass) const
//‚Optional Parameter Group 3:
d ASP 10i 0 options(*nopass) const
//‚Optional Parameter Group 4:
d JobSysName 8 options(*nopass) const
d StrSplCrtDat 7 options(*nopass) const
d StrSplCrtTim 8 options(*nopass) const
d EndSplCrtDat 7 options(*nopass) const
d EndSplCrtTim 8 options(*nopass) const
//‚Optional Parameter Group 5:
d ASPdevice 10 options(*nopass) const
D SPLF0300 ds 136 qualified based(pSplf0300)
d Job_name 10
d User_name 10
d Job_number 6
d Spool_name 10
d Spool_number 10i 0
d Spool_status 10i 0
d Date_created 7
d Time_created 6
d Spool_schedule 1
d Spool_sys_name 10
d User_data 10
d Form_type 10
d OutQ_Name 10
d OutQ_lib 10
d ASP 10i 0
d Size 10i 0
d sizemultiplier 10i 0
d Total_pages 10i 0
d Copies_to_prod 10i 0
d Priority 1
d Reserved 3
d IPP_jobid 10i 0
full code and explanations at my public site (free code)
http://jplamontre.free.fr/AS400/CLNSPL.htm