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 Interfaces/Conversion
Batch Processing API's
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Hitman
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5208
People Online:
Visitors:
306
Members:
0
Total:
306
Online Now:
New Topics
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson S3 HR/Payroll/Benefits
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
Lawson S3 Procurement
RQ13 Approval Info
10/17/2024 2:12 PM
When a Requisition is approved on RQ13, what table
S3 Customization/Development
Read and Write CSV file COBOL
10/9/2024 2:53 PM
Does anyone have a quik example of a program that
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1372
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
S3 Interfaces/Conversion
Batch Processing API's
Please
login
to post a reply.
6 Replies
0
Subscribed to this topic
11 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
wwaters
Basic Member
Posts: 11
7/27/2011 3:28 PM
Has anyone used the Lawson Batch Processing API's? I am trying to use U@LOADJOB and U@CRTJOB to update my PO120 job definition. The program retrieves the current job definition via U@LOADJOB, changes the PO# field to the PO that I am working with, and then issues U@CRTJOB to update the PO120 definition. The program runs, but the job definition is not being updated. I am not seeing an error message anywhere indicating what went wrong. Please help!!
John Henley
Posts: 3353
7/27/2011 5:19 PM
Posted By wwaters on 07/27/2011 11:28 AM
changes the PO# field to the PO that I am working with
Look again at your logic...I'm assuming you are copying the parameters block into a local variable, and then updating the PO#...but are you copying back the update local variable back to the parameters block before you call CRTJOB?
wwaters
Basic Member
Posts: 11
7/27/2011 6:48 PM
John - Yes, my program will copy the parameters block into a local data structure, update the PO#, and then copy the local data structure back to the parameters block. The problem is that my program doesn't make it that far. It appears that my program bombs when calling the U@LOADJOB procedure. Here is a copy of the beginning of my code:
/Free
E@JRUSERNAME = USERNAME;
E@JRJOBNNAME = JOBNAME;
U@LOADJOB();
IF E@JRERROR = 'N';
MYDATAFLD1 = E@JRUSERNAME;
MYDATAFLD2 = E@JRJOBNNAME;
MYDATAFLD3 = PONUMBER;
WRITE MYDATAFMT;
The reason that I believe the U@LOADJOB is not working is because MYDATAFMT never gets written. Even if I write E@JRERROR to MYDATAFLD1 just after the U@LOADJOB statement, MYDATAFMT still does not get written. Something is wrong with the U@LOADJOB statement but I don't know what.
Thank you for your assistance!
John Henley
Posts: 3353
7/27/2011 8:25 PM
I'm not sure about your example, but where is PONUMBER defined?
When you call the LOADJOB, it will load the job parameters into E@JSPARAMS
Have you looked at E@JSPARAMS(1) ?
wwaters
Basic Member
Posts: 11
7/28/2011 11:24 AM
Hi John,
First, thank you for your responses. I appreciate your willingness to help.
USERNAME, JOBNAME, and PONUMBER are all parameters that are being passed into this program. E@JSPARAMS(1) is blank. I don't think the job parameters are being loaded because of an error on the U@LOADJOB. Maybe I'm missing a /COPY statement needed for the U@LOADJOB to work?? Do you have the source for a working program that you would not mind sharing?
wwaters
Basic Member
Posts: 11
7/29/2011 1:19 PM
I finally found an error message. When I submit the job vs calling it from the command line I get the following message:
Unable to establish a database connection. Encountered error: Unable to attach the ladb shared memory segment. You should verify that the ladb process is running.
Has anyone else ran across this message and, if so, what steps were taken to correct it?
wwaters
Basic Member
Posts: 11
8/2/2011 6:12 PM
Got it working. Had to include the following in my code:
/Free
// Set Control fields in E@CONTROL.
E@CONTROL@P = %ADDR(E@ENTRY@CNTRL);
// Set the Product Line or Data Area to be updated.
E@PRODUCTLINE = 'XXXXXXX ';
// Set the User Name to be used for the update
E@USERNAME = 'XXXXXXXXX ';
// This call sets up required values for database access. It is
// required for both an online or a batch run of this program.
U@@INITONLINE(%ADDR(E@CONTROL));
BTW, I did not see this in the documentation anywhere!
Please
login
to post a reply.