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:
HireIQ
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5264
People Online:
Visitors:
475
Members:
0
Total:
475
Online Now:
New Topics
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
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
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
1375
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: 3351
7/27/2011 5:19 PM
Split
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
Split
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: 3351
7/27/2011 8:25 PM
Split
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
Split
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
Split
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
Split
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.