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

Ispf macro's


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Niveditha

New User


Joined: 10 Mar 2009
Posts: 6
Location: chennai

PostPosted: Sat Mar 21, 2009 1:01 pm
Reply with quote

I need to code a small rexx utility for the following requirement. I will get the PDS name and search string from the user. I need to find the count, that is the number of times the string has appeared in each member. For this i opened the dataset ISPF command view along with the macro to find the count as below.

'VIEW DATASET('FILE') MACRO(EM2)'

and the macro em2 is working fine. But the problem is after displaying the count it also opens the file in view mode. I dont want the file to be opened in view mode but just run the macro and find the count alone. Is there any that i could do this.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Sat Mar 21, 2009 1:08 pm
Reply with quote

why reinvent the wheel ??
what is wrong in using the SRCHFOR dialog provided by ISP itself
Back to top
View user's profile Send private message
Niveditha

New User


Joined: 10 Mar 2009
Posts: 6
Location: chennai

PostPosted: Sat Mar 21, 2009 1:15 pm
Reply with quote

No, this is a part of big tool being developed. ISPF panels are used to get the information from the user. after processing the information at one stage, this step needs to be carried out. That's y i done want to display the datasets to the user. Mostly more than one dataset needs to opened and get the count. Please suggest me some method to do this.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Mar 21, 2009 3:07 pm
Reply with quote

do you have an END command in your em2 macro?
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Mon Mar 23, 2009 9:15 pm
Reply with quote

Call the SRCHFOR utility program from a rexx program.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
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 PRINTOUT macro PL/I & Assembler 0
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
Search our Forums:

Back to Top