PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 05/12/2016 9:53 AM by  jaherb
Best practice of copying a program
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Vijay S
Lawson Developer
Independent consultant
Veteran Member
(389 points)
Veteran Member
Posts:167


Send Message:

--
04/29/2016 7:17 AM

    Dear All,

    I have to copy a standard program having around 10 workfiles. We all know that Lawson doesn't change the name of workfile and WS-Field ID in work file definition while copying , It changes the same in PD (like wherever I am using WH130, it will change it to ZZ130 in PD/WS, The workfile name starting from WH130 doesn't change). It seems like I have to manually go into PD and change the name of all the Workfiles and other field. I had done it earlier also where there were like couple of instances of workfile. Was wondering is there a shorter way ?

    Thanks,

    - Vijay 

    jaherb
    Private
    Private
    Veteran Member
    (471 points)
    Veteran Member
    Posts:163


    Send Message:

    --
    05/02/2016 10:21 AM
    Vjay.... what you say is true... the copy process does not change the workfile names. However there is an easy way of doing this... you can use the cwf command at the command prompt...
    The syntax is
    Usage: To change work file names in the Environment database.
    Syntax: cwf ProductLine SystemCode ProgramCode OldWorkFile NewWorkFile

    I too use to do what you are doing or go in and manually enter each of the work files to match the program name. This is one item I do dislike in Lawson and usually take the time after I create a program to go in and generically rename each work file... so that in the event of copying the new program, this is not an issue.

    Jim
    Vijay S
    Lawson Developer
    Independent consultant
    Veteran Member
    (389 points)
    Veteran Member
    Posts:167


    Send Message:

    --
    05/11/2016 10:52 PM
    Thanks Jim ...that helped !
    jaherb
    Private
    Private
    Veteran Member
    (471 points)
    Veteran Member
    Posts:163


    Send Message:

    --
    05/12/2016 9:53 AM
    No problem VJ. That is about the easiest way I have found to do that....
    You are not authorized to post a reply.