Migrating custom program from 8.03 to 9.01

 7 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
Joe O'Toole
Veteran Member Send Private Message
Posts: 314
Veteran Member
We have a custom program built off of BN106 in our 8.03 system that we need to move to 9.01. I believe the changes are limited to the WS and PD members so I will be making copies of these on the 9.01 side and rolling in the custom code. Other than that what are the best practices / steps for moving this program across? Thanks.
John Henley
Send Private Message
Posts: 3351
https://www.lawsonguru.co...-Customizations.aspx
Thanks for using the LawsonGuru.com forums!
John
Joe O'Toole
Veteran Member Send Private Message
Posts: 314
Veteran Member
We did a pgmdump from 8.03 and a pgmload into 9.01 and the program recompiled clean. Once updated the WS and PD versions of the custom program were updated to 9.01 versions the compile dies on missing field def in WS for PRM-DATE-FROM. This field is not in the custom 8.03 version when I do a bldsh but exists in the 9.01 version of the delivered BN106 CBL. This field is referenced in the 9.01 BN106PD but is not in the BN106WS so it must be in one of the other copybooks pulled in at compile time or in the core program code when it is defind. If that is the case I think we're going to have to redefine the program in 9.01 from scratch. Is there a way to pgmdump program-a and the pgmload to new name (ie: program-b)? I only see an option to override prod-line so maybe needs to be done in pgmdef? Also, can anyone refresh my memory on regenerating the .rpt and .scr files?
Ragu Raghavan
Veteran Member Send Private Message
Posts: 477
Veteran Member
1. PRM- most likely is a parameter, so should be in the .scr file
2. from pgmdef, do F6, A, F6, to copy the code
3. why do you need to regenerate the .rpt and .scr files ? If you are using the 803 code, the .rpt and .scr files not available ? If you are recreating from 901 BN106, the .rpt and .scr files should be created for you.

Joe O'Toole
Veteran Member Send Private Message
Posts: 314
Veteran Member
Thanks, I actually have another thread open on this in the customizations forum. The location of the PRM is still eluding me - it's referenced in the BN106PD but not in the WS or SCR
SP
Veteran Member Send Private Message
Posts: 122
Veteran Member
Look in your original 803 version of the your customized scr file for the name DATE-FROM. I bet it's in there. If it's in your copied custom program PD file, it had to be somewhere in the scr file or else the original customized 803 could not compile cleanly. Is the PRM-DATE-FROM referenced in other parts of the new 901 PD file? If there is only one instance, and it's not really used, then just comment it out and see what happens with your customized app.
Deleted User
New Member Send Private Message
Posts: 0
New Member
Is that program using a library that is not longer used in 9.01? Check to make sure the the field in question is not in the a library source.
Joe O'Toole
Veteran Member Send Private Message
Posts: 314
Veteran Member
Thanks. We got it working, there were 2 issues - the PRM field name is a prefix and does not appar that way in the Lawson code which was why we couldn't find it. There were also a customization in the SCR file that were not being addressed in the PD file code. Once we addressed these items the program compiled clean.