Best practice of copying a program

Author
Messages
Vijay S
Veteran Member
Posts: 174
Veteran Member

    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
    Veteran Member
    Posts: 164
    Veteran Member
      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
      Veteran Member
      Posts: 174
      Veteran Member
        Thanks Jim ...that helped !
        jaherb
        Veteran Member
        Posts: 164
        Veteran Member
          No problem VJ. That is about the easiest way I have found to do that....
          ---