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.
- Log in as the Lawson Security Officer (or a user who
is a Security Officer)
- Turn OFF Lawson Security (lawsec off will do the trick)
- Change to a directory where you have at least 200MB of
free space
- 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...)
- Import the System Definition
At the prompt type: sysload CurrentPLName.exp NewPLName
Click
Here for a helpfull tip
- Dump Menus
At the prompt type: dmpprodmenus CurrentPLName CurrentPLName.menus
Then type: dmpprodmenus -x CurrentPLName CurrentPLName.xmenus
(this will get the transfer menus)
- Load Menus
At the prompt type: ldprodmenus CurrentPLName.menus NewPLName
Then type: ldprodmenus CurrentPLName.xmenus NewPLName
- Copy all Lawson Source Code and
Objects
At the prompt type: cp -R $LAWDIR/CurrentPLName/* $LAWDIR/NewPLName
- 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!
- Build a Version File
Change directory to $LADBDIR/CURRENTPLNAME and, at the prompt
type: blddbvers CurrentPLName
- Copy the Version File
At the prompt type: cp version $LADBDIR/NEWPRODUCTLINE
- Update the Time Stamp
At the prompt type: setdbvers NewPLName $LADBDIR/CURRENTPLNAME/version
- Set the Time Stamp for the Data
File
At the prompt type: setdbstamp NewPLName
- 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. |