On Mon, 17 Aug 2020 08:00:39 -0700, Sri h Kolusu wrote:
>>>I want to search for four terms: X'01' and C'1' and X'05' and C'ABCDE'.
>All these 4 terms are next to each other.
>
>Elardus,
>
Welcome back. I've missed you since February.
>
>Unless this is a trick question, isn't it simple to have the entire search
>string in HEX since all the fields are next to each other?
>
>Something like this
>
>//SYSIN DD *
> OPTION COPY
> INCLUDE COND=(1,500,SS,EQ,X'01F105C1C2C3C4C5')
>/*
That absolutely works, but it's less intuitively legible than (e.g. in Rexx):
say '01'x || '1' || '05'x || 'ABCDE'
(I've wished for similar facility in JCL.)
What if there's a 30-character key containing only one nonprintable character?
"Beware of the Turing tar-pit in which everything is possible but
nothing of interest is easy." -- AlanPerlis
But, I know, Ob: camel's nose.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN