nightly job as pdf file

 6 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
hsuhsen
Basic Member Send Private Message
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 Send Private Message
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
Send Private Message
Posts: 3351
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 Send Private Message
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 Send Private Message
Posts: 142
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 Send Private Message
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 Send Private Message
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?