|
View previous topic :: View next topic
|
| Author |
Message |
Niveditha
New User
Joined: 10 Mar 2009 Posts: 6 Location: chennai
|
|
|
|
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 |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
why reinvent the wheel ??
what is wrong in using the SRCHFOR dialog provided by ISP itself |
|
| Back to top |
|
 |
Niveditha
New User
Joined: 10 Mar 2009 Posts: 6 Location: chennai
|
|
|
|
| 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 |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
| do you have an END command in your em2 macro? |
|
| Back to top |
|
 |
Pedro
Global Moderator

Joined: 01 Sep 2006 Posts: 2624 Location: Silicon Valley
|
|
|
|
| Call the SRCHFOR utility program from a rexx program. |
|
| Back to top |
|
 |
|
|