Spool file Exist in a CL program

180 pts.
Tags:
AS/400
CL
Spool File
How do I check in CL to see if a spool file exists? I am using IEFFECT (PDF creation software) to create PDF's, but I only want the IEFFECT job to run if a relevant spool file exists.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Why not just add the call to IEFFECT in the CL job that creates it? Or is this to be off hours?  You could create a work file with the spoolfile attributes of the jobs in question and then use this as your driving file for running your PDF job. This way you would have the JOB / USER / JOB# / SPOOL NUMBER most likely need for you call.

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.
  • ITDavid
    Thanks ToddN2000 for the reply.  I have added the call to IEFFECT in my CL job, I suppose what I am really looking for is a conditional call.  ie. If SPLF does not exist end CL.  How do I code such a statement?
    180 pointsBadges:
    report
  • WoodEngineer
    Would it work to always attempt the conversion and add a MONMSG to trap when it fails?
    8,060 pointsBadges:
    report
  • philpl1jb

    This is kind-of-a backdoor way to do it

    Issue a change spool file command  CHFSPLF

    If the file isn't found you will get a CPF3303

    54,090 pointsBadges:
    report
  • ITDavid
    Thanks for the responses, I used MONMSG and works a treat.
    180 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.

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

Following

Share this item with your network: