In my project most of the files have data in hexadecimal format.
Whenever we need to search a string in the files, we had to convert the "string to search" to hexa format and doing F x'hexa value' to find the string.
Now I am trying to create a rexx tool, to convert the "search string" to hexa value automatically and find it in the ps file.
I was able fetch the "search string" and convert it into hexa value. However I couldn't use ISREDIT Find command to find the search string. Since ISREDIT can be used only on the files opened in edit mode. Almost all the files in our project are big files. It will be opened in browse mode.
Now the solution I need is "A WAY TO INVOKE FIND COMMAND IN A PS FILE OPENED IN BROWSE MODE". Please suggest.
Edit macros are not supported for browse.
Have you looked at ISPF SUPERSEARCH? Or SORT?
If you need a more programmable solution, then read the file with REXX EXECIO, 1000 records or so at a time. Or write a proper program.
Joined: 01 Sep 2006 Posts: 2135 Location: Silicon Valley
While BROWSE macros are not supported, you may be able to do something, and even as I write this, I am not sure it is a good recommendation.
Use a modified browse panel where you have added rexx code in the )PROC section that gets ZCMD and performs whatever transformation you want done, then sets ZCMD to be whatever FIND command will work for you.
But as Enrico already mentioned, if you cannot type the hex character itself, then how can you simplify the command that you issue?