Interfacing batch command files with PRTDEF

 4 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
ArthurThum
Advanced Member
Posts: 25
Advanced Member
    Does anyone know how to interface information such as JOBID, Print File name and path and USERID to a batch command file through a printer definition PRTDEF so I can identify, find and process Lawson reports in another system? My thoguhts were to set up a generic print definition and pass through it to a script, the JOB ID, USER ID Step and file name so I could pick up the file at print time and send it to an external system. Can I pass this information or acquire it somehow on the PRTDEF? or pass it to the script somhow when I print?
    ArthurThum
    Advanced Member
    Posts: 25
    Advanced Member
      OK lets try this since noone bit at this. On the PRTDEF command how can the USERID and FILENAME be passed to a command on the PRTDEF?
      SP
      Veteran Member
      Posts: 122
      Veteran Member
        What are you trying to accomplish? Take PRTDEF out the picture for a
        moment and describe to us the business problem you are trying to solve. I
        can only speak for myself, but your original post is a bit confusing.

        On Thu, Apr 12, 2012 at 10:29 PM, wrote:

        > [image: LawsonGuru.com Logo] <https://www.lawsonguru.com/> S3 Systems
        > Administration Forum Notification A message was posted to a thread you
        > are tracking. *RE: Interfacing batch command files with PRTDEF* Posted by:
        > *aathum*
        > 04/12/2012 09:15 PM OK lets try this since noone bit at this. On the
        > PRTDEF command how can the USERID and FILENAME be passed to a command on
        > the PRTDEF?
        > ------------------------------
        >
        > To view the complete thread and reply via your browser, please visit:
        >
        > https://www.lawsonguru.co...d-files-with-prtdef/
        >
        > You were sent this email because you opted to receive email notifications
        > when someone posted and/or responded to a message on this forum.
        > To unsubscribe to this thread please visit your user profile page and
        > change your subscription options.
        >
        > Thank you,
        > LawsonGuru.com
        >

        ArthurThum
        Advanced Member
        Posts: 25
        Advanced Member
          All right, Lets try something a little less obtuse.
          1. Take a print file from the print manager. Any file out there
          2. Direct it to a third party spooling application. Doc Express is not and will not be installed or considered.
          3. The file can be spooled to this third party app using a command line command lpr.
          4. This command requires an IP address, filename and a couple of parms that are recognized by the third party app to spool to a particular printer, select forms etc.. Just one command and pretty simple.
          5. The number of possible destinations and permutations of print file to forms or locations might be prohibitive to set up a printer definition for each one of the possibilities.

          So how do I get a print file from print manager, identify the file and its location and send it to an lpr command at the time of printing? PORTAL and LID

          Hope this clarifies it for you a little bit more. Thanks for responding.
          JimY
          Veteran Member
          Posts: 510
          Veteran Member
            Just curious. Did you ever get this resolved? I am trying to execute an lpr command in a script from Lawson Print Manager and it is throwing errors that scroll to fast so I can't see them. The script works fine from the command line. Thank you.