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

Running ISPF Edit Macros


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Tue May 23, 2006 7:42 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed May 24, 2006 1:45 am
Reply with quote

How do you know the macro is actually working if the lines are not being displayed?
Back to top
View user's profile Send private message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Wed May 24, 2006 1:01 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Looking for a little history of ISPF ... TSO/ISPF 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
Search our Forums:

Back to Top