Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2088
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
This topic is locked: you cannot edit posts or make replies. ISREDIT Macro is not returning back t... nico_neoz CLIST & REXX 21 Sat Nov 18, 2017 7:40 pm
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us