change the work directory for a program

 3 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
pit
New Member
Posts: 2
New Member
    Hi,

    Is it possible to change the directory where a program stores it's temporary work files?

    Currently our programs, during execution, create lots of small files in the $LAWDIR//work directory. I'd like one specific porgram create the files in $LAWDIR//work/XT100. Is it possible to do such change without any program customization? If not, dos the change require lots of coding?

    Kind Regards,
    Pit


    John Henley
    Posts: 3353
      Yes, in most cases you can change it via workdef (for all jobs/instances for that program) or via jobdef (for just a specific instance).
      Thanks for using the LawsonGuru.com forums!
      John
      pit
      New Member
      Posts: 2
      New Member
        It was exactly what I needed! Thank you very much.
        Sam Simpson
        Veteran Member
        Posts: 239
        Veteran Member
          If migrating/copying into a new product line, here are four GEN tables that you can modify to do mass changes to file paths:
          WRKFLOPTS JOBSTEP JOBSTEPWRK JOBSTEPRPT & USERRPT

          All you have to do is do a rngdbdump into a csv file, edit the csv file then upload back using import db. Here's an example:

          rngdbdump -c GEN WRKFLOPTS > WORKFLOPTS.csv

          After editing WORFLOPTS: importdb -uf GEN workflopts WORKFLOPTS.CSV