×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I have an MI program that for some reason is unable to locate jobs on
a system and returns with code 9. This same program works fine on
other systems. Just wondering if there's anything I am missing in the
code itself. Has the maximum number of WCB tables increased beyond
30?
Thanks!
All systems at V5R4 and sec level 40, program is System State:
ENTRY RTVJOBLDA(ENTPARM) EXT;
/* Declare a pointer to the job name */
DCL SPCPTR .#JOBNAM PARM;
/* Declare a pointer to the job user */
DCL SPCPTR .#JOBUSR PARM;
/* Declare a pointer to the job number */
DCL SPCPTR .#JOBNBR PARM;
/* Declare a pointer to the job data area required (*LDA etc) */
DCL SPCPTR .#JOBARA PARM;
/* Declare a pointer to the passed LDA space. */
DCL SPCPTR .#RETSPC PARM;
/* Declare a pointer to the returned code. */
DCL SPCPTR .#RETCDE PARM;
/* Parameter list. */
DCL OL ENTPARM(.#JOBNAM, .#JOBUSR, .#JOBNBR, .#JOBARA,
.#RETSPC, .#RETCDE) EXT PARM MIN(0);
/* Job name */
DCL DD #JOBNAME CHAR(10) BAS(.#JOBNAM);
/* Job user name */
DCL DD #JOBUSER CHAR(10) BAS(.#JOBUSR);
/* Job number */
DCL DD #JOBNBR CHAR(6) BAS(.#JOBNBR);
/* Job data area */
DCL DD #JOBARA CHAR(4) BAS(.#JOBARA);
/* Returned LDA value */
DCL DD #RETSPC CHAR(2000) BAS(.#RETSPC);
/* Returned code */
DCL DD #RETCDE PKD(1) BAS(.#RETCDE);
/* Current Job PCO space */
DCL DD OWN-PCO CHAR(512) BASPCO;
/*------------------------------------------*/
/* Pointer in PCO to Master Table (QWCBT00) */
/*------------------------------------------*/
DCL SYSPTR @WCBT00 DEF(OWN-PCO) POS(433); /* Offset X'1B0' */
SETSPPO .WCB-ENTRY, THE-OFFSET;
CHECK-WCBTBL-ENTRY:
/* Now test for a job match */
CMPBLA(B) #JOBNAME, WCB-JOBNAM/NEQ(NEXT-WCTBL-ENTRY);
CMPBLA(B) #JOBUSER, WCB-JOBUSR/NEQ(NEXT-WCTBL-ENTRY);
CMPBLA(B) #JOBNBR , WCB-JOBNBR/NEQ(NEXT-WCTBL-ENTRY);
/* everything matches - WE HAVE THE JOB!! */
B .GOTJOB;
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.