Copy Product Line
     

/etc/lawson.env

Copy Product Line

Workfiles

importdb -fu

rngdbdump -c

Transferring Data

Find progs that use a lib

Mount CD

 

The following contains the procedures for copying a product line without recompiling all the applications.

This information is taught in more detail in the LAWSON INSIGHTTM UNIX Environment System Administration class. Please contact your Client Account Manager for details on the training or you can visit Lawson's web site at http://www.lawson.com and go into the Clients tab to find the training schedule.

  1. Log in as the Lawson Security Officer (or a user who is a Security Officer)
     
  2. Turn OFF Lawson Security (lawsec off will do the trick)
     
  3. Change to a directory where you have at least 200MB of free space
     
  4. Export the System Definition
    At the prompt type: sysdump CurrentPLName CurrentPLName.exp and press the enter key (Please note: from now on I will assume you'll press the enter key after typing a command...)
     
  5. Import the System Definition
    At the prompt type: sysload CurrentPLName.exp NewPLName

    Click Here for a helpfull tip
     
  6. Dump Menus
    At the prompt type: dmpprodmenus CurrentPLName CurrentPLName.menus
    Then type: dmpprodmenus -x CurrentPLName CurrentPLName.xmenus (this will get the transfer menus)
     
  7. Load Menus
    At the prompt type: ldprodmenus CurrentPLName.menus NewPLName
    Then type: ldprodmenus CurrentPLName.xmenus NewPLName
     
  8. Copy all Lawson Source Code and Objects
    At the prompt type: cp -R $LAWDIR/CurrentPLName/* $LAWDIR/NewPLName
     
  9. Build the Data Dictionar
    At the prompt type: blddbdict NewPLName > blddbdict.out 2>&1 (remember nohup)

    From time-to-time there is confusion as to what this command will do if the $LADBDIR/dict/NEWPLNAME file does not exist. Normally (for an already existing PL) a file will be created called $LADBDIR/dict/+EXISTINGPLNAME and you'll then need to do a dbreorg. For a new product line you will NOT need to do a dbreorg as there is nothing to reorg - it's a new product line!
     
  10. Build a Version File
    Change directory to $LADBDIR/CURRENTPLNAME and, at the prompt type: blddbvers CurrentPLName
     
  11. Copy the Version File
    At the prompt type: cp version $LADBDIR/NEWPRODUCTLINE
     
  12. Update the Time Stamp
    At the prompt type: setdbvers NewPLName $LADBDIR/CURRENTPLNAME/version
     
  13. Set the Time Stamp for the Data File
    At the prompt type: setdbstamp NewPLName
     
  14. Compile Form/Screen and Object Rules
    At the prompt type: srgen NewPLName . That's all.

If you are using an Enterprise RDBMS (such as Oracle) you could create the database space in Lawson's dbdef for the new product line and assign this database space to the new product line before step #9 (blddbdict). Then after step #9 you would enter the command dbcreate NewPLName. This will create all the 3rd party database tables for your new product line.