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



What are the contents of "qualjobname" and "Splf_Name" when the API is
run?

What is the message ID of this error?



On Thu, 10 Jun 2004, Walt Fles wrote:

> Ok Ive made some progress!
>
> I found the spool file to my job, now I want to open the spool file and
> send it back to the system.
>
> This is the function call I use:
> QSPOPNSP( &splfilehandle, ( void * ) qualjobname,
>                         ( void * ) "                ", /* 16 blanks */
>                         ( void * ) "                ", /* 16 blanks */
>                         Splf_Name, Rcv_Spl_Var->Splf_Number,
>                         -1, &err_code );
> I get this error:
> Job system name is not valid.
>
> Any ideas?
>
> I know that this is really touchy code and misplacing a blank can lead
> to disastrous results.
>
> TIA!
>
>
>
>
>
> 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.
> >
> >
> >
> >
>
> _______________________________________________
> 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.