nightly job as pdf file

Sort:
You are not authorized to post a reply.
Author
Messages
hsuhsen
Basic Member
Posts: 23
Basic Member
    My user would like to us to create a job that runs nightly, is distributed to two different users, and is a .pdf file by default. 

    Is there a way to do all of this using recdef? I know you can create and distribute the job, I'm just not sure about the file type.

    Thanks!
    Jimmy Chiu
    Veteran Member
    Posts: 641
    Veteran Member
      You can set the user option for "default report type" to PDF under portal. Then your distribute report will be viewed as PDF. If needed which i don't see a reason why, they can save it when viewing to a different location.
      John Henley
      Senior Member
      Posts: 3348
      Senior Member
        Also look into using bldxffiles as a step in a multi-step job to build PDF depending on how you have .cfg files set for PDF generation. =
        Thanks for using the LawsonGuru.com forums!
        John
        Saurabh
        Veteran Member
        Posts: 94
        Veteran Member
          We have a vbscript which runs at a scheduled time. The vbscript calls the bldxffiles to create the pdf output and then saves it in a shared unc path which is accessible by the users.
          Karen Sheridan
          Veteran Member
          Posts: 141
          Veteran Member
            We'd like to do this but create as CSV.  It works correctly when typed at the command line, but is too long for tokendef.

            It's been a while since I've done this and it was in WIndows.  In Unix, can tokendef point to a "bat" file.  Any gotcha's?  Where do most folks store the file? Gendir/bin?

            TIA,
            Karen
            hsuhsen
            Basic Member
            Posts: 23
            Basic Member

              Here is the batch file that I run as a scheduled task on our Windows server. I'm not sure what the equivalent is on Unix. We run the job nightly using recdef, and this script runs after that to create the pdf file and move it to the directory.

              echo off

              rem This creates the .pdf file from the .prt file
              D:\lsf90\gen\bin\bldxffiles SP lawson D:\lsf90\law\print\BVSD_LAWSON\ic233-10\1 IC233.prt

              rem This moves the pdf file to the "pdffiles" directory (which I created on the server and granted aceess to for the users who wanted this)
              cp D:\lsf90\law\print\BVSD_LAWSON\ic233-10\1\IC233.pdf d:\pdffiles\IC233\IC233%date:~-4,4%%date:~-10,2%%date:~-7,2%.pdf

              you can use the bldxffiles C to create csv rather than the P for pdf.
              EchoSchmidt
              New Member
              Posts: 2
              New Member
                Saurabh,

                We are trying to do something similar to this.  Do you have an example vbscript that you have been using that I could use as a jumping off point for creating our own process?

                You are not authorized to post a reply.