×
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.
Here's a new version, which works with both IN (for numeric *and* character)
and also with LIKE for character (by including leading or trailing
percent-signs):
@IN copybook
/IF DEFINED(@IN)
/EOF
/ENDIF
/DEFINE @IN
D inc PR N Extproc('@in') Opdesc
D pSearch 512A Const Varying
D pScan1 512A Const Varying
D pScan2 512A Const Varying Options(*Nopass)
D pScan3 512A Const Varying Options(*Nopass)
D pScan4 512A Const Varying Options(*Nopass)
D pScan5 512A Const Varying Options(*Nopass)
D pScan6 512A Const Varying Options(*Nopass)
D pScan7 512A Const Varying Options(*Nopass)
D pScan8 512A Const Varying Options(*Nopass)
D pScan9 512A Const Varying Options(*Nopass)
D pScan10 512A Const Varying Options(*Nopass)
D inn PR N Extproc('@in') OpDesc
D pSearch 30P 9 Const
D pScan1 30P 9 Const
D pScan2 30P 9 Const Options(*Nopass)
D pScan3 30P 9 Const Options(*Nopass)
D pScan4 30P 9 Const Options(*Nopass)
D pScan5 30P 9 Const Options(*Nopass)
D pScan6 30P 9 Const Options(*Nopass)
D pScan7 30P 9 Const Options(*Nopass)
D pScan8 30P 9 Const Options(*Nopass)
D pScan9 30P 9 Const Options(*Nopass)
D pScan10 30P 9 Const Options(*Nopass)
@IN member
H DEBUG(*YES) NOMAIN
T* @IN
X* QCMPSRC,CRTRPGMOD
*=============================================================================================
D Npm_ParmList_Addr...
D PR * Extproc('_NPMPARMLISTADDR')
D Npm_ParmList_t DS Based(TEMPLATE) Qualified
D desclistptr *
D 16A
D parmptr * Dim(400)
D Npm_DescList_t DS Based(TEMPLATE) Qualified
D argc 10I 0
D 8A
D opdesc 10I 0
D 16A
D descptr * Dim(400)
D Npm_Desc_t DS Based(TEMPLATE) Qualified
D type 3I 0
D datatype 3I 0
D inf1 3I 0
D inf2 3I 0
D len 10I 0
D Npm_ParmNbr_t S 10I 0 Based(TEMPLATE)
D Npm_DataPtr_t S * Based(TEMPLATE)
*=============================================================================================
*‚@in(): Scan for a string in a series of other strings
*=============================================================================================
P @in B Export
D PI N OpDesc
D pSearch 512A Const Varying
D pScan1 512A Const Varying
D pScan2 512A Const Varying Options(*Nopass)
D pScan3 512A Const Varying Options(*Nopass)
D pScan4 512A Const Varying Options(*Nopass)
D pScan5 512A Const Varying Options(*Nopass)
D pScan6 512A Const Varying Options(*Nopass)
D pScan7 512A Const Varying Options(*Nopass)
D pScan8 512A Const Varying Options(*Nopass)
D pScan9 512A Const Varying Options(*Nopass)
D pScan10 512A Const Varying Options(*Nopass)
*---------------------------------------------------------------------------------------------
D plist DS Likeds(Npm_ParmList_t)
D Based(plistptr)
D dlist DS Likeds(Npm_DescList_t)
D Based(dlistptr)
D parmnbr S Like(Npm_ParmNbr_t)
D parmptr S *
D parm S 512A Varying Based(parmptr)
D parm_nbr S 30P 9 Based(parmptr)
D Search S 512A Inz Varying
D Search_nbr S 30P 9
D Scan S 512A Varying
D lead S 10I 0 Inz
D trail S 10I 0 Inz
D pos S 10I 0 Inz
*---------------------------------------------------------------------------------------------
/free
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.