He was confusing MASK value with Condition Code.

Chris Blaicher
Technical Architect
Mainframe Development
P: 201-930-8234  |  M: 512-627-3803
E: [email protected]

Syncsort Incorporated
2 Blue Hill Plaza #1563
Pearl River, NY 10965
www.syncsort.com

Data quality leader Trillium Software is now a part of Syncsort.


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Charles Mills
Sent: Friday, January 5, 2018 4:27 PM
To: [email protected]
Subject: Re: SRST Question

Without looking at the PoOp, doesn't CC=1 indicate that the search has failed 
so far, but that more length remains in the register pair, so you should branch 
back and keep trying? A number of instructions are interruptible and work that 
way.

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Grinsell, Don
Sent: Friday, January 5, 2018 1:12 PM
To: [email protected]
Subject: SRST Question

Has anybody played with the SRST instruction?  I am confused by the examples in 
the PoP.  Why do they branch back to the SRST instruction when the string is 
found, e.g. BC 1,LOOP1?  Shouldn't the branch be to the FOUND label, e.g.
BC 1,FOUND?

      L 5,STRAADR
      L 4,STRALEN
      AR 4,5
      LA 0,X'C1'
LOOP1 SRST 4,5
      BC 1,LOOP1
      BC 2,NOTFND
FOUND [Any instruction]
...
NOTFND [Any instruction]

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

________________________________



ATTENTION: -----

The information contained in this message (including any files transmitted with 
this message) may contain proprietary, trade secret or other confidential 
and/or legally privileged information. Any pricing information contained in 
this message or in any files transmitted with this message is always 
confidential and cannot be shared with any third parties without prior written 
approval from Syncsort. This message is intended to be read only by the 
individual or entity to whom it is addressed or by their designee. If the 
reader of this message is not the intended recipient, you are on notice that 
any use, disclosure, copying or distribution of this message, in any form, is 
strictly prohibited. If you have received this message in error, please 
immediately notify the sender and/or Syncsort and destroy all copies of this 
message in your possession, custody or control.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to