Spool file info

265 pts.
Tags:
IBM iSeries
Spool files
I need to capture spool file information from a job within that job. I can get most of the info from using RTVJOBA but how do I get the file number?

Software/Hardware used:
iSeries, CL

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • CharlieBrowne
    You can use APIs. Here is a link to the APIs for spool files http://pic.dhe.ibm.com/infocenter/iseries/v6r1m0/index.jsp?topic=/apis/print1b.htm
    41,380 pointsBadges:
    report
  • RayM
    I have never used API's before. The one I would need is QSPRILSP, but how do I use this in a CL?
    265 pointsBadges:
    report
  • WoodEngineer
    If you have TAATOOLS check out RTVSPLFA. It returns lots of good info.
    6,875 pointsBadges:
    report
  • TomLiotta
    Since it's a program rather than a procedure, calling QSPRILSP is just like calling any *PGM. The four parms are defined in the documentation. A trivial example might look like this:pgm ( +
           )
    /* */
       dcl   &rtnvar      *char    70
       dcl   &lrtnvar     *int            value( 70 )
    /* */
       dspfd       QSYSPRT output( *PRINT ) fileatr( *PRTF )
       call        QSPRILSP  ( +
                               &rtnvar      +
                               &lrtnvar     +
                               'SPRL0100'   +
                               x'0000000000000000' +
                             )
    /* */
       dmpclpgm
    /* */
       return
    /* */
    endpgm
    Compare that to the documentation. Run it, and also compare its output to the documentation.


    If there are questions, post back here.


    Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following