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
File Channels are a feature in IPA that is similar to the ScanFile Client feature in ProcessFlow. A File Channel scans a directory periodically for files which will kick off processes in IPA. The files and processes are configured in File Receivers. Here is how to set them up.
How to Set up File Channels
Log in to Rich Client
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
Click Actions > Create or click the create icon
Overview Tab
Enter a meaningful channel name
Enter a description for the channel
Check “Is Enabled”
This can be unchecked when the file scanner is not needed
Choose the channel type
Local points to a directory on the local server
Remote requires FTP to be enabled on the local server and the remote server
Enter the directory that will be scanned by the file channel
Choose whether to match case sensitivity on the file
Enter an error file directory
This is where files will go if there is an error in the scanning (NOT an error in the flow)
Enter an in-progress file directory
This is where files will go once they are successfully scanned
Choose a scan interval (in minutes)
Click the Save icon
How to Set up File Channel Receivers
Once you have created your File Channel, you must now set up the File Channel Receivers, which will configure the files that are picked up during a scan
Make sure your File Channel is deactivated
File Receivers cannot be created or modified if the File Channel is active
Go to the File Channels screen
Right click on the File Channel for which you are adding a receiver
Select “Deactivate”
Open your new File Channel and navigate to the File Channel Receivers tab
Click Actions > Create or click the create icon
Enter the Receiver details
Enter a name for the Receiver
Enter a description
Choose the file name for which the receiver will be scanning
You can use regular expressions here
Select the process that should begin when the file is found in a scan
Choose the Startup Type
Click the Save icon
Be sure to reactivate your File Channel so that it can begin scanning for your files
https://www.nogalis.com/wp-content/uploads/2016/06/Create-a-File-Channel-in-IPA.jpg665732Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2016-06-30 13:50:402016-06-30 13:50:40Create a File Channel in IPA
At the login prompt, enter the correct 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 > Scheduling > By Process Definition”
At this point, you can click, HOLD, and drag the “By Process Definition” link to the canvas. That way, it will create a shortcut on the canvas.
Once you are in User Defined Processes, you should see a list of Process Triggers that have been set up
Locate the process that you wish to run
If you do not see the process you wish to run, you must create a new trigger for it.
Click the “New” icon
Select the Process Name you wish to run
Give the trigger a “Work Title” (this is a required field for the trigger to function)
Save the trigger
Close this screen
Right click on the process and select “Start”
To check the status of the process, open the work units screen at “Start > Applications > Process Server Administrator > Workunits > Workunits”
This presents a list of workunits. Choose the workunit corresponding to the process you just ran, and double click to open the information screen
Here, you can see any error messages and view the log
https://www.nogalis.com/wp-content/uploads/2016/06/Run-a-Process-in-IPA.jpg646711Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2016-06-22 14:27:402016-06-22 14:27:40Run a Process in IPA
You’re about to make some changes but want to create a backup for LDAP just in case there are any mistakes.
Let’s get started:
First thing we need to do is remote into the v10 server you want to backup LDAP.
Once in, create a “temp” directory somewhere in Lawson or lsfprod. For us, this will be Lawson\temp\<todays date>
Run CMD.exe as administrator:
Switch to drive Lawson is on, for us this is the D:\
Now type dsdbutil and hit enter, then type list instances and hit enter to get a list of instances.
Once you know what instance you want, type Activate instance <Instance Name>
This will set the instance name to backup.
Type ifm and press enter. To create the backup, type create full <directory output name>
Make sure there are no spaces in your directory output name.
Example:
create full D:\lawson\temp\20160531
Now check that directory and there should be a .dit file.
To restore an LDAP backup, turn off IBM Services in the correct order.
This should be:
IBM Websphere app. server v8.5 Infot10Prod-app.
IBM Websphere app. server v8.5 Node Agent
IBM Cellmanager02
Turn off Prodinfor10ADLDS service (or similar name)
Then go to the <Drive>\Microsoft ADAM\ProdInfor10ADLDS\data directory and replace the .dit file with your backup (back up the existing .dit file just in case).
Start those IBM services back up in proper order along with Prodinfor10ADLDS.
https://www.nogalis.com/wp-content/uploads/2016/06/How-to-Backup-LDAP-in-Lawson-v10-1.jpg646711Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2016-06-16 16:08:232016-06-16 16:08:23How to Backup LDAP in Lawson v10