Lawson Libraries 8 to 9

 2 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Randall
Veteran Member
Posts: 44
Veteran Member

    Hey all,

    I did some searching on this, but didn't seem to find anything, so I apologize if a problem like this has been posted.

    I'm migrating a custom batch program from Lawson 8 to LSF9.  When I migrate it to LSF9 and compile, I get some compile errors.

    The program is defined in the PR system code.  However, it's using the UPPERCASE (PD) & ARSTORAGE (WS) library that is in the AR system code.  It tries to move a value to ARWS-FIELD-IN (which is in the ARSTORAGE working storage library), then does PERFORM 600-CONVERT-LOWER-CASE (in the UPPERCASE library), and then return the field ARWS-FIELD-OUT as the result.

    I'm getting the errors during compile that ARWS-FIELD-IN and ARWS-FIELD-OUT are not defined in working storage, which tells me it doesn't find it in the ARSTORAGE, then checks my working storage for the value.  However, at this time, it's not giving me an error on the PERFORM 600-CONVERT-LOWER-CASE.  I have another program that is doing the same thing with different fields, yet I figure the solution is going to be the same in both scenarios.

    I was always under the assumption that to include a library in your program when you compile, you just to include a reference to it.

    I do realize that the library structure is different in LSF9 than it is Lawson 8, and I figure that's my problem.  However, for example, AP20 has the ACAC70PD library listed as a program library and it's in the AC system code.

    Is there a piece I'm missing here?  Is there a way to manually tell a program where to look?  Any help would be greatly appreciated.

    Thanks,
    Randall

    John Henley
    Posts: 3353

      Randall, I remember running into that as well; those libraries changed with 9.0 apps and you'll need to change your custom program to call a different library routine: 760-IF-UPPER-CASE.

      Thanks for using the LawsonGuru.com forums!
      John
      Randall
      Veteran Member
      Posts: 44
      Veteran Member
        Thanks John, it's all working out now.

        Randall