View previous topic :: View next topic
|
Author |
Message |
sudip_ghanvat
New User
Joined: 05 Apr 2007 Posts: 15 Location: pune
|
|
|
|
I have string 'BA_AUDIT_REPORT_WK'.
I need to replace underscore by '-'. Is it possible to do in REXX?
Thanks,
Sudip Ghanvat |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Translate |
|
Back to top |
|
|
sudip_ghanvat
New User
Joined: 05 Apr 2007 Posts: 15 Location: pune
|
|
|
|
Hi
Could you please provide me detail SYNTAX for Translate command.
Thanks |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Could you open the REXX reference manual.
There is an access to that from this forum.
Cheers
Pierre |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
/* REXX */
str = 'BA_AUDIT_REPORT_WK'
Say str
str = Translate(str,'-','_')
Say str
TRANSLATE function. |
|
Back to top |
|
|
sudip_ghanvat
New User
Joined: 05 Apr 2007 Posts: 15 Location: pune
|
|
|
|
Thanks Kevin
Your solution work successfull. |
|
Back to top |
|
|
|