Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to replace '_' by '-'

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
sudip_ghanvat

New User


Joined: 05 Apr 2007
Posts: 15
Location: pune

PostPosted: Fri Sep 19, 2008 12:00 am    Post subject: How to replace '_' by '-'
Reply with quote

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
View user's profile Send private message

PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Fri Sep 19, 2008 12:02 am    Post subject:
Reply with quote

Translate
Back to top
View user's profile Send private message
sudip_ghanvat

New User


Joined: 05 Apr 2007
Posts: 15
Location: pune

PostPosted: Fri Sep 19, 2008 12:02 am    Post subject: Reply to: How to replace '_' by '-'
Reply with quote

Hi

Could you please provide me detail SYNTAX for Translate command.

Thanks
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Fri Sep 19, 2008 12:03 am    Post subject:
Reply with quote

Could you open the REXX reference manual.

There is an access to that from this forum.

Cheers

Pierre
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Sep 19, 2008 12:06 am    Post subject: Reply to: How to replace '_' by '-'
Reply with quote

/* REXX */
str = 'BA_AUDIT_REPORT_WK'
Say str
str = Translate(str,'-','_')
Say str

TRANSLATE function.
Back to top
View user's profile Send private message
sudip_ghanvat

New User


Joined: 05 Apr 2007
Posts: 15
Location: pune

PostPosted: Fri Sep 19, 2008 12:11 am    Post subject: Reply to: How to replace '_' by '-'
Reply with quote

Thanks Kevin

Your solution work successfull.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts Replace function abdulrafi COBOL Programming 13 Mon Sep 12, 2016 10:12 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us