I am way behind the curve in learning to use procedures, modules, binding directories and service programs, but I'm committed to doing so. Sadly, I'm stalled in the starting box, so I'm here hoping for help.
I have a tiny RPGLE program I'm trying to use to test my first procedure module & service program--just to prove the process for myself. This program abends when it tries to invoke the procedure and I receive the following message:
Cannot resolve to object DATEINF1. Type and Subtype X'0201' Authority X'0000'.
This is how I set things up:
1) created a QCPYLESRC file, DATESRV, containing the prototype and field definitions (example 1 in the attachment)
2) created a procedure, DATEINF1, and compiled it as a module (example 2):
CRTRPGMOD MODULE(LXUSRO/DATEINF1) SRCFILE(LXUSROS/QMODSRC) SRCMBR(DATEINF1)
3) created a service program called DATESRV the currently has only the DATEINF1 module:
CRTSRVPGM SRVPGM(MYLIB/DATESRV) MODULE(MYLIB/DATEINF1) SRCFILE(MYLIB/Q
BNDSRC) SRCMBR(*SRVPGM) BNDSRVPGM(*NONE) BNDDIR(MYLIB/TBNDDIR) ACTGRP(DAT
ESRV)
4) added service program DATESRV to our binding directory, TBNDDIR and created binding language (example 4)
5) created the tiny test RPGLE program (example 3) :
CRTPGM PGM(MYLIB/TESTPROC) BNDSRVPGM((MYLIB/DATESRV *DEFER)) BNDDIR(MYLIB/TBNDDIR) DETAIL(*FULL)
Can anyone offer any help or insight into what I am doing wrong or missing in this process?
I have a tiny RPGLE program I'm trying to use to test my first procedure module & service program--just to prove the process for myself. This program abends when it tries to invoke the procedure and I receive the following message:
Cannot resolve to object DATEINF1. Type and Subtype X'0201' Authority X'0000'.
This is how I set things up:
1) created a QCPYLESRC file, DATESRV, containing the prototype and field definitions (example 1 in the attachment)
2) created a procedure, DATEINF1, and compiled it as a module (example 2):
CRTRPGMOD MODULE(LXUSRO/DATEINF1) SRCFILE(LXUSROS/QMODSRC) SRCMBR(DATEINF1)
3) created a service program called DATESRV the currently has only the DATEINF1 module:
CRTSRVPGM SRVPGM(MYLIB/DATESRV) MODULE(MYLIB/DATEINF1) SRCFILE(MYLIB/Q
BNDSRC) SRCMBR(*SRVPGM) BNDSRVPGM(*NONE) BNDDIR(MYLIB/TBNDDIR) ACTGRP(DAT
ESRV)
4) added service program DATESRV to our binding directory, TBNDDIR and created binding language (example 4)
5) created the tiny test RPGLE program (example 3) :
CRTPGM PGM(MYLIB/TESTPROC) BNDSRVPGM((MYLIB/DATESRV *DEFER)) BNDDIR(MYLIB/TBNDDIR) DETAIL(*FULL)
Can anyone offer any help or insight into what I am doing wrong or missing in this process?
Comment