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
 

 

Need help while inserting a set of characters thru macro

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Need help while inserting a set of characters thru macro
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

Senior Member


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

PostPosted: Tue Dec 09, 2008 10:05 pm    Post subject: Reply to: Need help while inserting a set of characters thru
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    Post subject:
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    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 PCOMM macro to call another PCOMM macro boyti ko All Other Mainframe Topics 4 Tue Jul 12, 2016 4:30 pm
No new posts Remove Special Characters from Mainfr... Rodger Zhang All Other Mainframe Topics 6 Wed Jul 06, 2016 1:12 am
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm
No new posts Calling macro via rexx in batch mode. SanaR CLIST & REXX 15 Tue Mar 08, 2016 4:46 pm


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