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



Ok....just making sure.  This is afterall the "C" list...and C
programers tend to be very detail oriented!

Bob 

> -----Original Message-----
> From: c400-l-bounces+bob=cstoneindy.com@xxxxxxxxxxxx 
> [mailto:c400-l-bounces+bob=cstoneindy.com@xxxxxxxxxxxx] On 
> Behalf Of Walt Fles
> Sent: Monday, June 07, 2004 3:47 PM
> To: C programming iSeries / AS400
> Subject: Re: [C400-L] Help with QUSLSPL
> 
> No I mean more like read data from it in, send the data to another 
> machine via a socket, but not
> change the file other than possible delete it.
> 
> Thanks!
> 
> Bob Crothers wrote:
> 
> >Walt,
> >
> >You are aware that you will not be able to work directly on the
data
> >in a spool file I hope.
> >
> >You can copy the data to a User Space or PF, and work on it there.
> >But it will not change the "spool file".
> >
> >It is a minor point, but could be a very significant point. 
> >
> >Bob
> >
> >  
> >
> >>-----Original Message-----
> >>From: c400-l-bounces@xxxxxxxxxxxx 
> >>[mailto:c400-l-bounces@xxxxxxxxxxxx] On Behalf Of Walt Fles
> >>Sent: Monday, June 07, 2004 3:39 PM
> >>To: C programming iSeries / AS400
> >>Subject: Re: [C400-L] Help with QUSLSPL
> >>
> >>Scott,
> >>I found an API example on the IBM web site that I am going to try
> >>    
> >>
> >and 
> >  
> >
> >>work through.
> >>
> >>Basically Id like to take a job pid, find the actual job
> >>    
> >>
> >information, 
> >  
> >
> >>and find the associated spooled file(s).
> >>Once I have that information Id like to work with the data in the 
> >>spooled files.
> >>
> >>Scott Klement wrote:
> >>
> >>    
> >>
> >>>Hi Walt,
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>>>are there any code examples of how to use QUSLSPL, to obtain a
> >>>>        
> >>>>
> >file
> >  
> >
> >>>>handle to the spooled output,
> >>>>so I can open it, read the data, and then close the spooled
file?
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>QUSLSPL does not return a file handle to anything, it just 
> >>>      
> >>>
> >>gives a list of
> >>    
> >>
> >>>spooled files.
> >>>
> >>>It's analogous to opendir/readdir/closedir, except that 
> >>>      
> >>>
> >>instead of reading
> >>    
> >>
> >>>files in a filesystem, it reads spooled files.  (Which are 
> >>>      
> >>>
> >>not stored in
> >>    
> >>
> >>>the standard filesystem like they would be in Unix-like 
> >>>      
> >>>
> >>operating systems)
> >>    
> >>
> >>> 
> >>>
> >>>      
> >>>
> >>>>I know how to use the open/close APIs but it's just a 
> >>>>        
> >>>>
> >>matter of finding
> >>    
> >>
> >>>>the output files.
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>Yes, that's what QUSLSPL does...  it lists the spooled files that
> >>>      
> >>>
> >are
> >  
> >
> >>>available.
> >>>
> >>>Then you use the "Open Spooled File (QSPOPNSP)", "Get Spooled
> >>>File Data (QSPGETSP)"  and "Close Spooled File (QSPCLOSP)" 
> >>>      
> >>>
> >>APIs to read
> >>    
> >>
> >>>the contents of the spooled file itself.
> >>>
> >>>I'm unclear of which API you want an example of?  In the 
> >>>      
> >>>
> >>first paragraph,
> >>    
> >>
> >>>you wanted an example of using QUSLSPL to get a file handle, 
> >>>      
> >>>
> >>which it does
> >>    
> >>
> >>>not do.  In the second example, you state that you already 
> >>>      
> >>>
> >>know how to
> >>    
> >>
> >>>open/read/close a spooled file, which means you already know 
> >>>      
> >>>
> >>how to get a
> >>    
> >>
> >>>handle to it?
> >>>
> >>>So what are you looking for?
> >>>
> >>>_______________________________________________
> >>>This is the C programming iSeries / AS400 (C400-L) mailing list
> >>>To post a message email: C400-L@xxxxxxxxxxxx
> >>>To subscribe, unsubscribe, or change list options,
> >>>visit: http://lists.midrange.com/mailman/listinfo/c400-l
> >>>or email: C400-L-request@xxxxxxxxxxxx
> >>>Before posting, please take a moment to review the archives
> >>>at http://archive.midrange.com/c400-l.
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>_______________________________________________
> >>This is the C programming iSeries / AS400 (C400-L) mailing list
> >>To post a message email: C400-L@xxxxxxxxxxxx
> >>To subscribe, unsubscribe, or change list options,
> >>visit: http://lists.midrange.com/mailman/listinfo/c400-l
> >>or email: C400-L-request@xxxxxxxxxxxx
> >>Before posting, please take a moment to review the archives
> >>at http://archive.midrange.com/c400-l.
> >>
> >>    
> >>
> >
> >_______________________________________________
> >This is the C programming iSeries / AS400 (C400-L) mailing list
> >To post a message email: C400-L@xxxxxxxxxxxx
> >To subscribe, unsubscribe, or change list options,
> >visit: http://lists.midrange.com/mailman/listinfo/c400-l
> >or email: C400-L-request@xxxxxxxxxxxx
> >Before posting, please take a moment to review the archives
> >at http://archive.midrange.com/c400-l.
> >
> >  
> >
> 
> _______________________________________________
> This is the C programming iSeries / AS400 (C400-L) mailing list
> To post a message email: C400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/c400-l
> or email: C400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/c400-l.
> 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.