Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Change '&' to '|'

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
sprikitik

New User


Joined: 29 Jan 2007
Posts: 61
Location: Makati City, Philippines

PostPosted: Fri Apr 04, 2014 12:35 pm    Post subject: Change '&' to '|'
Reply with quote

Hi,

My macro code is: ISREDIT CHANGE ALL "&" "|"

I'm getting a INVALID SYMBOLIC VARIABLE error.

Can anybody please let me know how to perform this?

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

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1567
Location: Andromeda Galaxy

PostPosted: Fri Apr 04, 2014 12:44 pm    Post subject:
Reply with quote

1.Where are you getting the error?
2.Where are executing this Macro?
3.What are you trying to achieve in this macro?
4.If possible paste the erroed code wiithin code tags
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1120
Location: Oostende, Belgium

PostPosted: Fri Apr 04, 2014 1:14 pm    Post subject:
Reply with quote

'&' characters are a PITA in edit macro change and find commands.

Use

Code:
amp = c2x('&')
"isredit c x'"amp"' '|' all"
Back to top
View user's profile Send private message
sprikitik

New User


Joined: 29 Jan 2007
Posts: 61
Location: Makati City, Philippines

PostPosted: Fri Apr 04, 2014 1:45 pm    Post subject: Reply to: Change '&' to '|'
Reply with quote

my code is :

Code:

ISREDIT MACRO
ISREDIT CHANGE  '&' '|' ALL
ISREDIT FIND ALL  "|"


try to execute the macro inside a pds member
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Fri Apr 04, 2014 8:03 pm    Post subject:
Reply with quote

when one has to deal with an ampersand - &
i always use the hex code x'??'.
then there is little problem.

If you don't know what the hex code for an & is, type one and then turn HEX ON.

and sprikitik, what is your last post about?
you have already been told, ampersands are problematic within ISREDIT Macro's.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to add new LPARs and change exist... Alan Playford All Other Mainframe Topics 0 Thu Aug 23, 2018 5:52 pm
No new posts row change timestamp charanmsrit DB2 3 Tue Jul 10, 2018 12:30 pm
No new posts Cannot change DATACLAS on DFSMSdss re... Alan Playford JCL & VSAM 11 Tue May 01, 2018 6:43 pm
No new posts Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm
No new posts How to change the logon screen info o... sakthikumarT TSO/ISPF 5 Fri Dec 29, 2017 6:44 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us