I'm trying to run a query against Lawson tables using EMPLOYEE(DBHREMP) with related table TA-MASTER (DBLPTEM) to pull all terminated employees with outstanding time off hours. I'm Using EMPSET3 (COMPANY,EMPLOYEE STATUS) as a front end filter which works fine. But when I try to use the selection criteria to include available hours <> 0 the process times out. If I run it on the server , no results are returned.
The code:
PROD=LAWAPP9&FILE=EMPLOYEE&INDEX=EMPSET3&KEY=88=VT;IT&FIELD=COMPANY;EMPLOYEE;EMP-STATUS;TA-MASTER.ACCR-HRS-BAL;TA-MASTER.AVAIL-HRS-BAL&SELECT=TA-MASTER.AVAIL-HRS-BAL%21%3D0&OUT=CSV&DELIM=~
Process Flow has issues occasionally with including the RELATED table in the Select. It is strange because sometimes it is a little inconsistent. Sometimes just fliping the main and related tables fixes it but usually I find that I have to create a query within a query to get the information I need.
Good luck.