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
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts ISPF program to set SCRNAME prino TSO/ISPF 5 Fri Sep 30, 2016 2:18 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm
No new posts ISPF Tables Creation newsysprg TSO/ISPF 6 Wed Jul 13, 2016 2:21 pm


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