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

Need help while inserting a set of characters thru macro


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
saravanans4

New User


Joined: 01 Sep 2003
Posts: 26

PostPosted: Tue Dec 09, 2008 8:10 pm
Reply with quote

My intention to is to get the a set of values from the user and insert them in the PDS after certain lines. I'm using REXX for the program:
Code:

DO CNT = 1 TO EREC.0 BY 1                                   
 MACNT = MACNT + 1                                         
 MAC.MACNT='  ADDRESS "ISREDIT" "LINE_AFTER '||L1" = "||'",'
 MACNT = MACNT + 1                                         
 MAC.MACNT="'"||'"'||STRIP(EREC.CNT,T,' ')||'"'||"'"  */   
 L1 = L1 + 1                                               
END                                                         

Whenever my input contains characters with quotes like
'Test,test' job card "Test,test" it couldn't be inserted with the same format.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Dec 09, 2008 10:05 pm
Reply with quote

It is difficult to do things when the ISREDIT commands use quotes in their syntax and the data itself contains quotes.

On those occasions, I change the data to something else, run the macro, then the data back to original.

Code:
Address ISREDIT
"CHANGE '7D'x '~' ALL "
/* add your macro logic here*/
"CHANGE '~'  '7D'x  ALL "
Back to top
View user's profile Send private message
saravanans4

New User


Joined: 01 Sep 2003
Posts: 26

PostPosted: Wed Dec 10, 2008 12:00 pm
Reply with quote

Thanks for your reply
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 Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
No new posts Count the number of characters in a f... CA Products 1
Search our Forums:

Back to Top