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
PR300 - edit out 18 month restriction
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:
1
Prev. 24 Hours:
0
Overall:
5187
People Online:
Visitors:
190
Members:
0
Total:
190
Online Now:
New Topics
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
Infor ION
ION vs IPA
2/29/2024 1:24 AM
We had a person new to Lawson and Infor go to Info
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
1348
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
PR300 - edit out 18 month restriction
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
bgodwin
Veteran Member
Posts: 143
3/23/2007 8:02 PM
We need to purge recent payroll history used for our pre-go-live parallel testing and learned that the PR300 will only let you purge items over 18 months old. We were told that we could comment out this code.
Does anyone have knowledge of how to do this and/or pros and cons of doing this (or things to be aware of).
I'm not a COBOL programmer but can following basic instructions if anyone would be so kind as to assist.
We are hoping to get rid of the test #'s on our data so that we can pull in the true payroll history for YTD and W2's to be accurate.
Any advice and/or assistance is always greatly appreciated.
Sam Simpson
Veteran Member
Posts: 239
3/23/2007 9:13 PM
Yes there is a default 547 days from current date that is used as compare dates which basically 18 months. However, I caution you of commenting out the value because it could mean that you will be purging transactions as of today for instance. I would however suggest to change the value as you may see fit and test it. There's a report that goes with the program.
You can edit PR300PD with notepad, look for "547", change it then recompile.
here's the scope of the cobol statement:
Todays date(yyyymmdd) is transformed into julian format.
Subtract 547 then transform back into yyyymmdd format.
Hope this help
bgodwin
Veteran Member
Posts: 143
3/30/2007 5:02 PM
Member
Group: Members
Posts: 10
Member No.: 796
Joined: 9-November 06
I'm getting an error when trying to run PR300 that says invalid distribution date.
any ideas?
I've tried a combination of stuff..I first changed the 547 to space space 1. That did not work.
I then commented out the following code in addition the the above change: (as per Lawsons recommendation).. I still cannot get past completing the pr300 screen where I want to put in the cut off year as 2007 to delete all 2007 payroll from our test system.
* IF (WS-CUTOFF-DATE > WS-COMPARE-DATE)
* IF (PRM-PAYROLL-FLAG = "2" OR "3")
* OR (PRM-PENSION-FLAG = "2" OR "3")
* OR (PRM-GARNISH-FLAG = "2" OR "3")
* OR (PRM-PR1099R-FLAG = "2" OR "3")
* OR (PRM-PRCHECK-FLAG = "2" OR "3")
* OR (PRM-DISTRIB-FLAG = "2" OR "3")
* OR (PRM-COMMENTS-FLAG = "2" OR "3")
* MOVE WS-CUTOFF-DATE TO CRT-ERR-VAR1
* MOVE WS-COMPARE-DATE TO CRT-ERR-VAR2
* MOVE 102 TO CRT-ERROR-NBR
* PERFORM 780-PRINT-ERROR-MSG
P40881* GO TO 050-END
* ELSE
* MOVE WS-COMPARE-DATE TO WS-CUTOFF-DATE
* END-IF
* END-IF.
John Henley
Senior Member
Posts: 3348
3/30/2007 7:53 PM
Beverly,
Remove the commenting that you did.
Change the line:
SUBTRACT 547 FROM WSDR-JULIAN-DAYS.
to:
MOVE ZEROES TO WSDR-JULIAN-DAYS.
Then re-compile and you should be OK.
You are not authorized to post a reply.