Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!YKTVMH3.BITNET!PERSHNG From: PERSHNG@YKTVMH3.BITNET ("John A. Pershing Jr.") Newsgroups: comp.lang.asm370 Subject: (none) Message-ID: <9011081546.AA18529@ucbvax.Berkeley.EDU> Date: 8 Nov 90 15:36:57 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: IBM 370 Assembly Programming Discussion List Distribution: inet Organization: The Internet Lines: 9 If you're coding in 370 Assembler, then simply use the equivalent machine instructions. SUBSTR ends up being either an EX (Execute) of an MVC (Move) instruction for "short" strings, or an MVCL (Move Long) instruction for "long" strings. (If you know the length of the "short" substring a-priori, then you don't need the EX -- just the MVC.) INDEX and VERIFY both end up being variants of the TRT (Translate and Test) instruction. John Pershing, IBM Research, Yorktown Heights