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
 

 

Running ISPF Edit Macros

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Running ISPF Edit Macros
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

Moderator Team Head


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

PostPosted: Wed May 24, 2006 1:45 am    Post subject: Re: Running ISPF Edit Macros
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    Post subject: Re: Running ISPF Edit Macros
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts Mass comment and edit elixir1986 IBM Tools 3 Thu Mar 02, 2017 10:09 pm
No new posts Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm


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