You may be used to deleting users jobs through jobdef.
This works, though you must select each job individually and press delete. So it’s not very efficient.
A better way do to this is jobinq
In lid >> jobinq <DOMAIN\UserName>
This will open up a window listing all the jobs of the user:
Now you can select multiple jobs with the HOME key:
If you want to select ALL jobs and delete them, select first job with HOME key.
Scroll all the way to the bottom of the job list and press END key on the very last Job and press F9 to delete:
Done. Good luck!
https://www.nogalis.com/wp-content/uploads/2016/11/How-to-delete-a-Lawson-Users-jobs-more-efficiently.jpg665732Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2016-11-14 11:21:062016-11-14 11:21:06How to delete a Lawson Users jobs more efficiently
After upgrading to Infor 10 with Employee Self Service, when users view their Printable Pay Stub the Overtime Rate was displaying Regular Rate (see screen print #2).
Screen Print #2
To resolve this issue:
in emss_config.xml change “calc_hourly_rate” = “true” (location: lawdir\web\lawson\xhrnet\xml\config)
The user requires access to their data. Through Lawson Security Administrator grant access to EMPLOYEE table fields: EXEMPT-EMP, SALARY-CLASS, TAX-STATE, WORK-STATE (see screen print #3 for “Printable Pay Stub” displaying correctly).
Type in the name of your DataSource and your database name as so (place the jndi\ in jndi name field):
Select existing JDBC provider >> Microsoft SQL Server JDBC Driver (Most common)
Enter in your database name and the server your database sits on:
Select your Admin user for Component-managed authentication alias.
Review your setup and click Finish:
Go test your newly created DataSource in from a SmartNotification or LBI Report that uses that DataSource.
Enjoy!
https://www.nogalis.com/wp-content/uploads/2016/10/How-To-Create-new-DataSource-for-LBI-in-Websphere-1-1.jpg545600Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2016-10-24 08:24:582016-10-23 21:53:26How To Create new DataSource for LBI in Websphere
If you upload the ACH file generated by PR160 to your bank, chances are you will need to fix the formatting after your upgrade to version 10. Some banks require the 94-character fixed width format, rather than the sequential format that is the Lawson default. Here are the steps to update your ACH file format.
In LID, type in the command workdef
Search for your product line and the File name TAPE
File Media should be “Tape”
The default “Value” for file name is PR160-ACHTAPE. If you need to drop the file under a custom name, you will enter it in the “Value”. If you want to keep the default, leave that field blank.
Click enter twice to save your changes
The PR160-ACHTAPE file is defaulted to save in the user’s print directory. If you want it saved somewhere else, you can supply the filename on the PR160 job. If you supply a file path on PR160, make sure the file name matches the “Value” field in workdef.
In Lawson Security, make sure that your Batch role has access to the cnvexp development token
https://www.nogalis.com/wp-content/uploads/2016/10/PR160-ACH-Output-Format.jpg665732Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2016-10-11 12:59:112016-10-11 13:04:47PR160 ACH Output Format
Every time an employee makes a benefits change, a new record is stored in the benefits table. Additionally, a new record is stored in the employee’s deduction master table for each deduction related to that benefit. If these records are allowed to accumulate unchecked, this can slow down payroll processing and even cause errors. The larger the benefits and deductions table become, the slower payroll batch jobs will run. These batch jobs, such as PR140, loop through each record in these benefits and deductions tables so that the correct deductions are applied. Some of these batch jobs have a limit of the number of records allowed, so if an employee has deductions that exceed that limit, the job will error out. Also, traversing through these records can greatly slow down processing.
To help alleviate these issues, we recommend running the BN430 benefits purge program periodically. When you are processing payroll, if you see an error similar to “26 20591 PRDED-DED-TABLE must be increased; Cur size 0500”, chances are you have an employee with too many benefits changes, and need to run the BN430. But, before you receive this error, you should make the benefits purge part of a normal maintenance process. Ideally, payroll users would make this part of the payroll process each pay period, and choose a “Purge Through Date” corresponding to your company’s record retention period.
https://www.nogalis.com/wp-content/uploads/2016/10/Purging-Benefits-Data.jpg545599Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2016-10-04 14:37:262016-10-04 14:37:26Purging Benefits Data
Upload the process to your server by clicking the up arrow icon , or by clicking:
Tools > Manage Processes > Select Open Process
Choose the process you wish to upload, then click OK
The process now appears in the list. Click “Upload”.
Create a Trigger in Rich Client
Now that your process is uploaded to the IPA system, it is time to create a trigger for the process. Once you have created your trigger, you will be able to:
Run the process manually
Schedule the process
Configure the process as part of a File Channel
Trigger the process from a Lawson S3 screen
Log into Rich Client
From the Start menu, navigate to Applications > Process Server Administrator > Scheduling > By Process Definition
Click Actions > Create, or click the “blank sheet” icon
Fill in the Process Trigger information
Process Name – Click the arrow to search for your newly-uploaded process
Work Title – Important: this field does not appear to be required, but if you do not fill it out, you will receive an error in the scheduler, and the flow will not run
5. Click Save
6. Once you click Save, you will have an opportunity to add variables that need to be passed into the flow
Run the Process Manually
There may be occasions where you need to run a process ad-hoc. Once you have created your trigger, you will be able to do this.
Log into Rich Client
From the Start menu, navigate to Applications > Process Server Administrator > Scheduling > By Process Definition
Find your Process in the Process Triggers list
Right-click and select Start, or highlight the flow, and select Actions > Start
The process will begin running, and a work unit will generate
To check the status of your process, navigate to Start > Applications > Administration > Workunits > Workunits
Double-click on the workunit to see the result
Schedule the Process
Log into Rich Client
From the Start menu, navigate to Applications > Process Server Administrator > Scheduling > By Process Definition
Find your Process in the Process Triggers list
Right-click and select Schedule, or highlight the flow, and select Actions > Schedule
Fill in the schedule properties
Click Next
Enter the time and date information
Click next
Click Finish
To view or update your schedule, navigate to Start > Applications > Process Server Administrator > My Actions > My Scheduled Actions
https://www.nogalis.com/wp-content/uploads/2016/07/Scheduling-a-Process-in-IPA.jpg665732Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2016-08-04 15:15:202016-08-04 15:15:20Scheduling a Process in IPA
At the login prompt, enter the Lawson username and password
The canvas is now open. Look in the upper left corner and make sure you are pointing to the prod or test data area (not gen)
In the upper right corner, click “Start > Applications > Process Server Administrator > Administration > Channels Administrator”
At this point, you can click, HOLD, and drag the “Channels Administrator” link to the canvas. That way, it will create a shortcut on the canvas.
Once you are in Channels Administrator, click on the File Channels tab, and you should see a list of File Channels that have been set up
Locate the channel for which you wish to scan
Right click on the channel and select “Scan Now”
This will scan the file configured in the Channels Administrator, and kick off any processes that use the files in that directory (the processes are configured in the File Channel Receivers section)
https://www.nogalis.com/wp-content/uploads/2016/07/Scan-for-Files-in-IPA.jpg665732Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2016-07-27 13:50:262016-07-27 13:50:26Scan for Files in IPA
Your install is successful, but when you log on to the BSI Interface (Screen Print #1) you receive an error (Error Message. Exception is: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Login failed for user ‘tf10’. ClientConnectionId:f0509232-la4c-4d22-b118-785e9ba8eee5). See Screen Print #2
Lawson programs, especially batch jobs, can sometimes take hours to complete. In rare instances, a badly written 4GL batch job can even take days to complete depending on the number of records it has to process and how it goes about doing so. Depending on your skill set, you may be able to optimize the code directly and use a debugger to find out how to speed things up. But if you want some statistics about what the program is doing and a quick shortcut, then there’s a utility for that.
The utility is actually several different utilities wrapped into one.
dbadmin utility to set some parameters. The main parameter you want to set is the TIMESTATS parameter. The timestats function is activated using the dbadmin utility.
Before you go changing stuff, to show current settings, run ‘dbadmin get’ from a LID command prompt or a qsh command prompt in System i.
#Example:
dbadmin get
Current Value for REUSE=ON
Current Value for DEBUG=OFF
Current Value for DBAPIERRORS=ON
Current Value for TIMESTATS=OFF
Current Value for USERFILTER=
Current Value for PROGRAMFILTER=
Current Value for DATAREAFILTER=
Current Value for TIMESTATSDIR=/tmp
Current Value for IDLETIME=1
Save this off for future reference.
#To enable timestats, run the following commands:
dbadmin set timestats on
dbadmin set programfilter programcode (optional, specify a program code. e.g. AP175. The default is all programs)
dbadmin set timestatsdir pathname (optional, ex. /home/username or C:\timestats. If not specified, stats files are created in /tmp or %TMPDIR% for Windows)
dbadmin set dataareafilter productline (optional, specify a productline name. The default is all productlines)
dbadmin set userfilter username (optional, the default is all users)
dbadmin set reuse off
#Clear the active database drivers so that the changes become effective
dbadmin idleall
tmcontrol -rp productline programcode (For online programs only)
#Run ‘dbadmin get’ after setting the options to check that the desired options are enabled.
#After should look like this:
Current Value for REUSE=OFF
Current Value for DEBUG=OFF
Current Value for DBAPIERRORS=ON
Current Value for TIMESTATS=ON
Current Value for USERFILTER=
Current Value for PROGRAMFILTER=HR211
Current Value for DATAREAFILTER=test
Current Value for TIMESTATSDIR=d:\lawson\temp\timstats
Current Value for IDLETIME=1
Now you’re ready to submit your job again. Once the job is submitted, you should be able to see the stat files get created in the timestatsdir directory.
Wait until the job has completed before viewing the file(s).
You can view the files after the job is complete but they aren’t all that easy to understand. To make them easier to digest:
Go to the stats directory and run:
analyze_stats -o > stats.out
You’ll notice that you now have two new files in this directory.
stats.out and a cfg file.
The stats.out file will give you a really great view of what’s going on with your program while the cfg file can be place in the xxsrc directory of your code and compiled with the program to optimize it based on the timestats results.
After you’re done:
To turn disable timestats and re-enable driver re-use:
dbadmin set timestats off
dbadmin set reuse on
https://www.nogalis.com/wp-content/uploads/2016/07/How-to-tune-the-performance-of-a-Lawson-4GL-program.jpg665732Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2016-07-18 13:36:072016-07-18 13:36:07How to tune the performance of a Lawson 4GL program
Note: Though possible, I would not recommend using jobdump and jobload from one version of Lawson to another as fields may change. Use at your own risk.
For this article, we will be doing jobdump and jobload in v10 between Prod and Test ProductLine.
Here are the flags for jobdump:
As you can see above, the flags give plenty of flexibility to specify what to dump. For this tutorial, we will be dumping all jobs for a single user from v10 Prod to v10 Test.
Step 1: First login to Lawson Interface Desktop, we’re logging into our v10 Prod server.
So we are essentially dumping all jobs –o Job for user –v UserName <YourUsersName> to a file called po_jobs.dmp that will be created in our current directory D:\lawson\temp\jobdump
We are dumping all jobs under our user: LawsonPOBatch. Make sure your user(s) exists in both ProductLines already.
Step 2: Transfer over your_dump_file.dmp file to other server via FTP etc.
Step 3: Login to your other servers productline, for us it will be v10 Test. Navigate through LID to your_dump_file.dmp file. This for us is: po_jobs.dmp
Here are the flags for jobload:
Since we dumped from Prod, we would be loading to Test. If it’s for the same user, no need to specify the username. If migrating to a new user with a different name, you can use a –m <source_user> <target_user>
We are transferring to the same user that is in both PROD and TEST so we don’t specify this.
Since we are transferring jobs from PROD to TEST you could specify this with –m ProductLine <SOURCE_PRODLINE> <TARGET_PRODLINE> (Must be in caps.)
Step 4: Run jobload in preview mode (without -c)
jobload -o Job -m ProductLine PROD TEST po_jobs.dmp
Or you could simply go into the .dmp file and change all instances of PROD to TEST (or whatever the name of your ProductLine is)
Then you could simply run
jobload -o Job po_jobs.dmp
This will run in preview mode. Run until you have no errors.
Step 5: Run in commit mode.
jobload -c -o Job -m ProductLine PROD TEST po_jobs.dmp
or
jobload -c -o Job po_jobs.dmp
if you edited the .dmp file manually.
If it was successful you’ll see the jobs being added.
Login to Lawson portal and verify those jobs got transferred over from that user.
Done!
https://www.nogalis.com/wp-content/uploads/2016/06/How-to-transfer-a-users-jobs-from-one-productline-to-another-using-jobdump-and-jobload.jpg665732Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2016-07-06 11:35:422016-07-06 16:37:34How to transfer a user’s jobs from one productline to another using jobdump and jobload