Thank you Paul but Iâm just trying to stop using C in my assembler programs.
ThatÂŽs why I asked for an assembler macro.
The ASAXWC macro is exactly what I want.
Regards
João
De: H390-***@yahoogroups.com [mailto:H390-***@yahoogroups.com]
Enviada em: segunda-feira, 21 de agosto de 2017 01:15
Para: H390-***@yahoogroups.com
Assunto: [H390-MVS] Re: Wildcard matching in MVS
Post by João Reginato ***@gmail.com [H390-MVS]Does anybody know any assembler macro
or API that can be called from an assembler
program to check a wildcard against a DSN?
patmat() may do what you want. You can
find it here:
http://mvs380.cvs.sourceforge.net/viewvc/mvs380/mvssrc/ozpd/c/patmat.c?view=markup
(the top comments show you how to use it).
I don't know what your environment is,
to know whether you can call C from
assembler.
If you're using GCCMVS then you will
need to provide a stack via R13 instead
of a simple save area. There is not too
much involved if you really want to use it.
Note that using GCCMVS patmat.c will
be converted to pure S/370 assembler,
with no runtime requirements. ie you
don't have to set up a special C
environment. All you need is a stack.
Note that patmat() is extremely elegant.
About 25 lines of code to do this seemingly
quite complex task.
BFN. Paul.