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
 

 

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: 58
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: 1529
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

Active Member


Joined: 07 Feb 2009
Posts: 984
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: 58
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: 6966
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 Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts How to change dataset attributes of m... ignich7 JCL & VSAM 3 Thu Jul 21, 2016 9:17 pm
No new posts GDG vsersion number change Raghu navaikulam JCL & VSAM 5 Fri May 27, 2016 4:49 pm
No new posts Change Data Capture Ron Klop DFSORT/ICETOOL 14 Fri Apr 15, 2016 2:56 pm
No new posts To change double quotes into csv read... Robert Sample COBOL Programming 3 Fri Feb 19, 2016 8:13 am


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