IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Change '&' to '|'


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Fri Apr 04, 2014 12:44 pm
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: 1306
Location: Vilnius, Lithuania

PostPosted: Fri Apr 04, 2014 1:14 pm
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
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: 6966
Location: porcelain throne

PostPosted: Fri Apr 04, 2014 8:03 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts SELECT from data change table DB2 5
No new posts Trying to change copybook in online c... CICS 4
No new posts Change Default Scroll Setting TSO/ISPF 1
No new posts Change history of vsam file. JCL & VSAM 3
Search our Forums:

Back to Top