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:
Wayne Willis
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5190
People Online:
Visitors:
236
Members:
0
Total:
236
Online Now:
New Topics
Lawson Landmark
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
IPA/ProcessFlow
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
S3 Customization/Development
Cobol - Extract Current Time
4/24/2024 7:21 PM
How do you extract just the Current System Time in
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1351
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
S3 Interfaces/Conversion
Batch Processing API's
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
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
Senior Member
Posts: 3349
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
Senior Member
Posts: 3349
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!
You are not authorized to post a reply.