View previous topic :: View next topic
|
Author |
Message |
saravanans4
New User
Joined: 01 Sep 2003 Posts: 26
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
saravanans4
New User
Joined: 01 Sep 2003 Posts: 26
|
|
|
|
Thanks for your reply |
|
Back to top |
|
|
|