Execute AP520 from external App on Iseries

Sort:
You are not authorized to post a reply.
Author
Messages
desichet
Posts: 7
    We need to process sperate Invoices batches coming into Lawson using AP520.  LAIBCH7 command executes the job in Lawson env but ignores overrides to DBAPCVI/DBAPCVD files. Is there a way to execute Lawson Batch Process (AP520) with OVRDBF command to process selected records ?  Not sure how to modify AP520 process  ?
    Steven Gray
    Advanced Member
    Posts: 21
    Advanced Member
      There's no way to use OVRDBF to select records in DBAPCVI/DBAPCVC, as the IO server programs, the CDRIVER jobs, are running in different subsystem/jobs than the AP520 job launched by LAIBCH7.

      Usually, you will load your invoice records into DBAPCVI/DBAPCVD with a unique or specific batch number to keep things separate. Then, before you run LAIBCH7, update the AP520 job def with your specific batch number. You could use one of the Lawson batch job APIs to update the job parameters, like U@LOADJOB, or just update the field PARAMS in the genlib/JOBSTEP file with some other method. The field PARAMS is one long text field, so hunt around to find the exact position of the Batch parameter.
      You are not authorized to post a reply.