ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

programmatically restart printers in end status

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • programmatically restart printers in end status

    Hello All,
    sometimes, users call me that a printer is in end... i just call wrkwtr and with option 1 in the printer, it restart... is there an api, that could help me to cycle all the printers, check the status and eventually restart it?

    thanx in advance

  • #2
    Re: programmatically restart printers in end status

    In my previous job, I wrote a CL program that would run the ENDWTR, VRYCFG and STRPRTWTR commands to end a writer, vary the device off, vary it back on and restart it. This program accepted the device name as a parameter, so it could be run on any device.

    When our users were having trouble with a writer not responding, they'd simply run this program and restart it.

    Maybe something like that would work for you, too?

    Comment


    • #3
      Scott Klement, can you send me this program? I think this will work for what I want to do.

      Comment


      • #4
        This was code from a previous job, I no longer have access to it. But, I've already explained the commands that I ran... surely you can put them together to make a CL program?

        Comment

        Working...
        X