Service program YAJLR4 not found.
Posted: Wed Aug 16, 2023 7:28 pm
Team,
I have an RPG program using YAJL that works most of the time. Every now an then I get the following error message when I call the program.
“Service program YAJLR4 not found.”.
On the green screen when I add YAJL to the library list the program begins to work again. I am not sure why this happens. In the RPG program I add the YAJL library programmatically before any code begin to execute.
Once the program finishes executing I verify my library list and YAJL is no longer in the list because the program removes the library from the list when it clean up at the end.
if I sign out and then back in again I will get the “Service program YAJLR4 not found.”. error until I add YAJL to my library list.
Any suggestions?
In our shop that is the standard way of doing things . 1 Modify the library list when starting adding utility libraries and then remove them at the end of the job run to keep the original list.
One thing I have noticed is that when the error occurs if I have a debugging session stated on the program it will not start I get the error and it will not enter the program. The error is occurring when the program initiates.
See code logic below.
Thank you for your input.
I have an RPG program using YAJL that works most of the time. Every now an then I get the following error message when I call the program.
“Service program YAJLR4 not found.”.
On the green screen when I add YAJL to the library list the program begins to work again. I am not sure why this happens. In the RPG program I add the YAJL library programmatically before any code begin to execute.
Once the program finishes executing I verify my library list and YAJL is no longer in the list because the program removes the library from the list when it clean up at the end.
if I sign out and then back in again I will get the “Service program YAJLR4 not found.”. error until I add YAJL to my library list.
Any suggestions?
In our shop that is the standard way of doing things . 1 Modify the library list when starting adding utility libraries and then remove them at the end of the job run to keep the original list.
One thing I have noticed is that when the error occurs if I have a debugging session stated on the program it will not start I get the error and it will not enter the program. The error is occurring when the program initiates.
See code logic below.
Code: Select all
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
// Data Description Lines
;
;
;
// ADD YAJL to library list
cmdstr ='ADDLIBLE LIB(YAJL) POSITION(*LAST)';
monitor;
ExcCmd(cmdstr:%len(cmdstr));
on-error;
endmon;
//Code to process JASON strings
;
;
;
// clean up library List remove YAJL from list
cmdstr ='ADDLIBLE LIB(YAJL) POSITION(*LAST)';
monitor;
ExcCmd(cmdstr:%len(cmdstr));
on-error;
endmon;
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/