Can't test it, but if I recall correctly, assignment will remove leading/trailing blanks. If the literal is already stored in a variable, say B, you can SET A=B to remove all blanks. From your sample, it is clear that you don't need a strip for a literal written in your own program, so I assumed it is just a sample for a variable having this value.
Itschak On Thu, Jun 4, 2009 at 4:39 PM, Baraniecki, Ray < ray.baranie...@morganstanley.com> wrote: > Try the following: SAY '/'STRIP('AA-BB','B')'/' > > Thanks, > > Ray Baraniecki > Morgan Stanley GWMG > 18th Floor > 1 New York Plaza > New York, NY 10004 > Office - 212-276-5641 > Cell - 917-597-5692 > ray.baranie...@morganstaley.com > BE CARBON CONSCIOUS. PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING THIS > E-MAIL. > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On > Behalf Of Gilbert Saint-Flour > Sent: Thursday, June 04, 2009 9:33 AM > To: IBM-MAIN@bama.ua.edu > Subject: CLIST equivalent to REXX STRIP > > Hello: > > I'm trying to find a way to translate this REXX instruction to > a CLIST equivalent : SAY '/' || STRIP(' AA-BB ') || '/' > I'm trying to remove the leading and trailing spaces, which may > or may not be present in the string. > > All the CLIST equivalent solutions I found so far are more complex, > in particular because of the hyphen that's part of the AA-BB string. > > Can anyone think of something simple and easy ? > > Thank you. > > -- > Gilbert Saint-Flour > GSF Software > http://gsf-soft.com/ > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html > > -------------------------------------------------------------------------- > Important Notice to Recipients: > It is important that you do not use e-mail to request, authorize or effect > the purchase or sale of any security or commodity, to send fund transfer > instructions, or to effect any other transactions. Any such request, orders, > or instructions that you send will not be accepted and will not be processed > by Morgan Stanley Smith Barney. > The Global Wealth Management Group of Morgan Stanley & Co. Incorporated and > the Smith Barney division of Citigroup Global Markets Inc. have combined > into Morgan Stanley Smith Barney LLC, a new investment adviser and > broker-dealer registered with the Securities and Exchange Commission. The > sender of this email is an employee of Morgan Stanley Smith Barney. > > Important disclosures on Morgan Stanley and Citi Investment Research & > Analysis research reports may relate in part to the separate businesses of > Citigroup Global Markets Inc. and Morgan Stanley that now form Morgan > Stanley Smith Barney LLC. To view these important research disclosures, go > to http://www.morganstanley.com/researchdisclosures and > https://www.citigroupgeo.com/geopublic/Disclosures/index_a.html. > > If received in error, please destroy and notify sender. Sender does not > intend to waive confidentiality or privilege. Use of this email is > prohibited when received in error. We may monitor and store emails to the > extent permitted by applicable law. > > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html