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
[email protected]
BE CARBON CONSCIOUS. PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING THIS
E-MAIL.
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of
Gilbert Saint-Flour
Sent: Thursday, June 04, 2009 9:33 AM
To: [email protected]
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 [email protected] 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 [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html