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: 1590
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
Warnings : 1

Senior Member


Joined: 07 Feb 2009
Posts: 1245
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: 6967
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 A command to change LRECL of an exist... JCL & VSAM 7
No new posts How to add new LPARs and change exist... All Other Mainframe Topics 0
No new posts row change timestamp DB2 3
No new posts Cannot change DATACLAS on DFSMSdss re... JCL & VSAM 11
No new posts Repeat Sequence Number Until change i... DFSORT/ICETOOL 6
Search our Forums:

Back to Top