PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10/09/2015 10:36 AM by  jaherb
work file def
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Chesca
Programmer/analyst
State
Veteran Member
(1028 points)
Veteran Member
Posts:482


Send Message:

--
10/07/2015 9:05 AM

    Hello, we are in the process of upgrading from Lawson MSP 9.1 to MSP 9.11. We have some custom code that I need to put back in vendor's programs. I am having a problem when copying the code, it doesn't rename the work files so it keeps the vendor's work file name. So I have a program that has like 6 works file that I need to copy and it can be so tedious. Is there an easy way to copy the work file definitions? 

    Woozy
    Private
    Private
    Veteran Member
    (3487 points)
    Veteran Member
    Posts:707


    Send Message:

    --
    10/07/2015 9:52 AM
    You might try metadumpwrk and metaloadwrk. Dump the files, use a text editor to update the dump file, then load it. It is still tedious, but at least you don't have to recreate it from scratch.

    There are several "metadumpxxx" programs - workfiles, messages, libraries, etc.
    Kelly Meade
    J. R. Simplot Company
    Boise, ID
    Chesca
    Programmer/analyst
    State
    Veteran Member
    (1028 points)
    Veteran Member
    Posts:482


    Send Message:

    --
    10/08/2015 2:52 PM
    Thanks for your prompted response, Woozy. What about the libraries? They weren't copied?
    Woozy
    Private
    Private
    Veteran Member
    (3487 points)
    Veteran Member
    Posts:707


    Send Message:

    --
    10/08/2015 3:53 PM
    It depends what "libraries" you mean. Program code will copy fine, but external libraries shouldn't need to be copied, unless you are wanting to clone and modify them. That's the only reason I mentioned the metadumplib.

    By the way, you'll still have to modify the program logic to reference your new work files - but this will be obvious when you attempt to compile.

    Good luck!
    Kelly Meade
    J. R. Simplot Company
    Boise, ID
    jaherb
    Independent
    Independent
    Veteran Member
    (472 points)
    Veteran Member
    Posts:164


    Send Message:

    --
    10/09/2015 10:36 AM
    Bernfc10... I just responded to your other posting on this subject. I have always opted for the pgmdump / pgmload utilities since they will capture the work file definitions, unlike metadump / metaload. With the later utilities, you then must perform the metadump / metaload on each of the work files.
    You are not authorized to post a reply.