Discussion:
[H390-MVS] Wildcard matching in MVS
João Reginato jb.reginato@gmail.com [H390-MVS]
2017-08-15 22:38:24 UTC
Permalink
Hi guys



Does anybody know any assembler macro or API that can be called from an
assembler program to check a wildcard against a DSN?

Or to verify a regular expression.?



TIA

João
Greg Price greg.price@optusnet.com.au [H390-MVS]
2017-08-16 04:06:14 UTC
Permalink
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?
Or to verify a regular expression.?
I don't know of any, but I guess slightly related on z/OS is
SYS1.MODGEN(ASAXWC) which I have used to advantage on occasion.

Cheers,
Greg
Giuseppe Vitillaro giuseppe@vitillaro.org [H390-MVS]
2017-08-16 08:10:23 UTC
Permalink
Post by Greg Price ***@optusnet.com.au [H390-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?
Or to verify a regular expression.?
I don't know of any, but I guess slightly related on z/OS is
SYS1.MODGEN(ASAXWC) which I have used to advantage on occasion.
Cheers,
Greg
It is C, but there is a PCRE port available
for Z/OS and I've a working port (GCCMVS) for MVS3.8j:

http://www.zaconsultants.net/7201.html

It is exactly the same code, beside the version, which is available
on any GNU platform.

My port just lack "wildcard PDS" expansion, which the Z/OS version
should have. My port is just a small "deviation" of the original
version for Z/OS.

Peppe.
jb.reginato@gmail.com [H390-MVS]
2017-08-16 14:34:40 UTC
Permalink
thank you all very helpfull
jb.reginato@gmail.com [H390-MVS]
2017-08-17 15:17:44 UTC
Permalink
Greg

where can I find any doc about asaxwc?


regards
João
Greg Price greg.price@optusnet.com.au [H390-MVS]
2017-08-17 15:36:13 UTC
Permalink
Post by ***@gmail.com [H390-MVS]
where can I find any doc about asaxwc?
The prologue of the macro itself is the only place I've ever found,
but it tells you all you need to know in order to be able to use it.

Cheers,
Greg
Tony Harminc tharminc@gmail.com [H390-MVS]
2017-08-17 17:31:13 UTC
Permalink
Post by Greg Price ***@optusnet.com.au [H390-MVS]
Post by ***@gmail.com [H390-MVS]
where can I find any doc about asaxwc?
The prologue of the macro itself is the only place I've ever found,
but it tells you all you need to know in order to be able to use it.
Interesting... Do you suppose it's a supported service? Someone should
ask on IBM-MAIN. It (the "ASA" component) seems to be part of some
"reuse" facility. So I don't know what it's really all about.

Tony H.
kerravon86@yahoo.com.au [H390-MVS]
2017-08-21 04:15:01 UTC
Permalink
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.
João Reginato jb.reginato@gmail.com [H390-MVS]
2017-08-21 12:50:08 UTC
Permalink
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.

Continue reading on narkive:
Loading...