Access to PMTOUT

Sort:
You are not authorized to post a reply.
Author
Messages
Sam Simpson
Veteran Member
Posts: 239
Veteran Member
    We are app 8.0.2x (unixlsolaris). In 7.0x and 8.0.3 PMTOUT
    is located in /<productLine>/work/PMTOUT/ but in 8.0.2x
    it is located in the root directory of work. This gives me a dilemna because the root directory of work is supposed to be for temporary files. I'm writing a cobol program to redo PMTOUT before check printing and the only way I can access this flat file is to call .ksh script(within cobol) to move the file to a different directory before opening it. Is there a way of directly reading it from the "work" root directory?

    Appreciate very much on any help on this.
    John Henley
    Senior Member
    Posts: 3348
    Senior Member
      How are you referencing the filename within your COBOL program? You should be able to change your reference to /productLine/work ...
      Thanks for using the LawsonGuru.com forums!
      John
      Sam Simpson
      Veteran Member
      Posts: 239
      Veteran Member
        PMTOUT is created by PR160 using 900-BUILD-TMP-FILE-NAME api and this api only creates it
        in the work directory. My only reference to the file is thru the workdef utility and I believe work files has to be in their own work directory not the root work directory. Only in csv that you can change the file sttributes. Let me know if there is a way to reference the path to the file during input. So far the 900-BUILD-TMP-FILE-NAME api is for output file only. Thanks for any help on this.
        John Henley
        Senior Member
        Posts: 3348
        Senior Member
          There are two ways to specify the file location/name in workdef using the "Value/WsFld Id" field:
          1. If Value is selected, and a value entered, the location/name is the same AND the file is created in the Product lines work directory (e.g. $LAWDIR/prod/work/PMTOUT/PMTOUT)
          2. If WsFld is selected, the value entered must exist in the WS for the program referencing the workfile, and the WsFld value contains the path and file name, and the file can be located anywhere (within reason, obviously lawson has to be able to access the path/file).

          In the case of PMTOUT, WsFld is used, and set to PRLASER-PMTOUT-NAME. Search PR160PD for PRLASER-PMTOUT-NAME and you'll see how the code is setting the value of PRLASER-PMTOUT-NAME.

          Thanks for using the LawsonGuru.com forums!
          John
          You are not authorized to post a reply.