Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
S3 Customization/Development
New Table w\compilation issues
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Chris Radcliffe
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5187
People Online:
Visitors:
266
Members:
0
Total:
266
Online Now:
New Topics
S3 Customization/Development
Cobol - Extract Current Time
4/24/2024 7:21 PM
How do you extract just the Current System Time in
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
Lawson Business Intelligence/Reporting/Crystal
Domain Name Change
3/5/2024 7:45 PM
Our domain name needs to change and was hoping I c
S3 Customization/Development
Cobol calling Shell Script
2/29/2024 1:27 PM
Has anyone created or modified a Lawson Cobol prog
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1351
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
S3 Customization/Development
New Table w\compilation issues
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
Demi
Veteran Member
Posts: 67
12/19/2011 5:24 PM
I've been tasked with adding a new database table to the Lawson PR system. I've created my table, ran blddbdict and dbreorg. My new (empty) table shows up in the database. I've since created two custom programs(using pgmdef & copy) to use my new table but when I run through a compile I keep getting this error:
Warning: Error - PrcWRKFILE(): 'NewTableName' Not Found In WsGrp
Warning: Work File 'NewTableName' May Not Be Defined In workdef
/lawson/gen/bin/bismark: Error Encountered IN Execution
/lawson/gen/ben/lawosh: Error Encountered In Execution
I've tried to create new libraries (PD,WS) using pgmdef, but can't do anything once I get there. Do there have to be defined as a workfile?
I've never created a custom table before and I'm not sure if I'm missing something. Searched the knowledge base thru and thru with not much help. I have questions... Do I 'need' to update the .OR file; my new file is created from the paydeductns table and is then, totally independant. Do I need to create a custom PD and WS? Will the lawson utilities create custom 840-, 850- (etc) or will they need to be handled independantly within my programs?
John Henley
Senior Member
Posts: 3348
12/19/2011 5:36 PM
The 840-, 850- paragraphs are created, however you have to PERFORM *something* that actually references the table in order for the Lawson bismark precompiler to actually generate the COBOL for access the table.
Sam Simpson
Veteran Member
Posts: 239
12/19/2011 5:38 PM
1. Did you create indexes to your tables?
2. Are you opening your tables in your custom program(like a workfifle)?
3. How are you reading/writing data?
Karen Sheridan
Veteran Member
Posts: 141
12/19/2011 5:39 PM
I wonder if the pgmdef copy created something that's off in workdef? Did you also look there to see if everything is as it should be?
Karen
John Henley
Senior Member
Posts: 3348
12/19/2011 6:05 PM
You have to PERFORM *something* that actually references the table in order for the Lawson bismark precompiler to actually generate the COBOL for accessing the table. If you are just referencing member variables/columns within the table, you will get an error, since you aren't actually accessing the table.
Demi
Veteran Member
Posts: 67
12/19/2011 7:44 PM
Thank-you to everyone for your responses, I really appreciate it. Currently I have two issues 1- my compilation is returning ... Warning: Error - PrcWRKFILE(): LEIT Not Found In WsGrp
Warning: Work File LEIT May Not Be Defined In workdef
D:\cobdev\gen/bin/bismark: Error Encountered In Execution
... Since I've created a new table called LEIT in the database (with 3 Indexes); do I need to define something more? I've tried creating a New Library for my table under pgmdef for my source but the software isn't allowing me to actually do anything. How does Lawson generate the internal PD and WS areas for the new table? Must I do something more than the blddbdict and the reorg? My second issue ... I can view my new screen and select criteria within the portal but when I add my job I receive "Validate: EOF Encountered".
John Henley
Senior Member
Posts: 3348
12/19/2011 7:53 PM
You don't need a library. Please read my answer above about needing some code in your program that accesses the LEIT table to have something in your code (i.e. PERFORM 840-FIND-LEISET1, etc.) that forces the bismark / qcompile process to insert the libraries. Again, you don't have to do anything with a library.
What is it that your program is trying to accomplish?
You are getting the "Validate: EOF Encountered" error because your program is not compiled.
Demi
Veteran Member
Posts: 67
12/19/2011 8:04 PM
My program is pulling information off of the PAYDEDUCTN table, along with the Employee master and the PRREGPARM file. The gathered information is then written out to my new table.
John Henley
Senior Member
Posts: 3348
12/19/2011 8:15 PM
PERFORM 800-CREATE-LEIT.
.
.
.
MOVE PYD-COMPANY TO LEI-COMPANY.
MOVE PYD-EMPLOYEE TO LEI-EMPLOYEE.
.
.
.
PERFORM 820-STORE-LEIT.
John Henley
Senior Member
Posts: 3348
12/19/2011 8:17 PM
It is the 800-CREATE-LEIT and the 820-STORE-LEIT that will trigger the complier to insert the appropriate library code.
Demi
Veteran Member
Posts: 67
12/19/2011 8:59 PM
Thank-you John! I'm on the move again. Any idea where I can get a list of the possible invalid key conditions? Can I use LEIT-Duplicates? I have a sequence number field in my record to sequence any possible duplicates.
You are not authorized to post a reply.