Page 1 of 1

REGARDING FIND COMMAND?

PostPosted: Sat Jul 14, 2012 5:02 pm
by kandrepavan
Hi all,

my appp pg m is of 10 pages.
I want to find a word /paraname in application program that word exist in the 1st page and 7 th page.
Now once i find the word in 1 st page then any command directly go to that word which is 7th page.(many times i dont know in which page the word may come)


thanx and regards.
pavan

Re: REGARDING FIND COMMAND?

PostPosted: Sat Jul 14, 2012 6:08 pm
by Robert Sample
If you are talking about a mainframe, programs on mainframes don't have "pages". If you are not talking about a mainframe, then this is not the right forum for your question.

Re: REGARDING FIND COMMAND in TSO / ISPF PANEL?

PostPosted: Sat Jul 14, 2012 7:25 pm
by kandrepavan
Hi Robert,

I am talking about mainframe code . I have a code of 2000 lines of cobol+db2+cics app pgm, ok.

I want to find a word /paraname in application program that word exist in the 1oth line , 100th line , 500th line etc.
Now once i find the word in 10th line then any command directly go to that word which is 100th line and so on.(many times i dont know in which line the word may come)

OR is there any other way other than FIND COMMAND?

Thanx and regards.
pavan

Re: REGARDING FIND COMMAND?

PostPosted: Sat Jul 14, 2012 8:16 pm
by Anuj Dhawan
Are you trying to write some tool in REXX, some ISREDIT Macro? Or just talking about ISPF command "FIND", F 'text'? If later is true, to find the next occurrence hit "PF5"! :?

Re: REGARDING FIND COMMAND?

PostPosted: Sat Jul 14, 2012 10:21 pm
by NicC
If you do not want to just hit PF5but actually specify some thing like "F 'abcd' on line 100" then I suggest you look at the help for the find command either via PF1 or via the "ISPF Edit & Edit Macros" manual

Re: REGARDING FIND COMMAND?

PostPosted: Sat Jul 14, 2012 11:40 pm
by dick scherrer
Hello,

If you issue a FIND and the one on the first "page" found, the NEXT can be found using PF5 (as mentioned).

If you only want the one on page 7 (or whatever) after page 1, there is no way to "skip over some" to get the one on or near page 7.

Re: REGARDING FIND COMMAND?

PostPosted: Sun Jul 15, 2012 2:15 pm
by expat
Doesn't the search facility 3.13 or 3.14 or whatever show the line numbers ?

Re: REGARDING FIND COMMAND?

PostPosted: Sun Jul 15, 2012 8:25 pm
by Pedro
there is no way to "skip over some" to get the one on or near page 7.

Issue these commands. It is not really 'skipping over some', but it gives you a similar result.
EXCLUDE ALL
FIND paraname ALL

Re: REGARDING FIND COMMAND?

PostPosted: Mon Jul 16, 2012 6:50 pm
by kandrepavan
Hi all,

I am making clear this question, i want to edit any kind mainframe code.
As most of u said to use PF5 , i used it and i got my requirement.It is working in FORWARD Direction ie frm TOP OF DATA line to
BOTTOM OF DATA.When i saw the command assigned to PF5 is RFIND..(IF it is nt correct , then please post the correct command).
Similar to that if i want to do in REVERSE Direction..is it possible or not? if possible then please post the command.


Thanx and regards.

Re: REGARDING FIND COMMAND?

PostPosted: Mon Jul 16, 2012 8:39 pm
by halfteck
As somebody mentioned earlier, if your using the ISPF editor, read the tutorial on the FIND command there are options, including f 'string' first/last/next/prev but these are edit commands.
The easiest way to see where a string appears in your 'code' is as was suggested earlier, ie

x all exclude all lines
f 'string' all will show all lines where that 'string' appears.
If your wanting something else then you need to explain the issue more clearly.