View previous topic :: View next topic
|
Author |
Message |
antonrino.b
New User
Joined: 10 Jan 2006 Posts: 76 Location: Germany
|
|
|
|
Hi,
I have an ISPF Edit Macro (Macroname is findcall) to print the lines which has the word 'call' as below:
Code: |
/* REXX */
address isredit 'macro'
do forever
address ispexec "isredit f call"
if rc <> 0 then
exit
address ispexec "isredit (data) = line .zcsr"
data=strip(data)
say data
end |
This works fine when I invoke this macro in a dataset view or edit panel.
Now, I wrote another REXX routine to edit a dataset using this macro.
Code: |
/* rexx */
text='anton.sample.cobol(program1)'
address ispexec
"edit dataset('"text"') macro("findcall")" |
This also works fine in all the way except that it doesnt display the lines.
What is the problem? I want them to be displayed while I run this REXX. Please Help me. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
How do you know the macro is actually working if the lines are not being displayed? |
|
Back to top |
|
|
antonrino.b
New User
Joined: 10 Jan 2006 Posts: 76 Location: Germany
|
|
|
|
Since I hadn't closed the dataset through "isredit end" command, the dataset was open. and I could see the cursor being placed at the last occurence of the word "call".
Thanks and Regards,
Antu |
|
Back to top |
|
|
|