REGARDING FIND COMMAND?



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

REGARDING FIND COMMAND?

Postby kandrepavan » Sat Jul 14, 2012 5:02 pm

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
kandrepavan
 
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time

Re: REGARDING FIND COMMAND?

 

Re: REGARDING FIND COMMAND?

Postby Robert Sample » Sat Jul 14, 2012 6:08 pm

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.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: REGARDING FIND COMMAND in TSO / ISPF PANEL?

Postby kandrepavan » Sat Jul 14, 2012 7:25 pm

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
kandrepavan
 
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time

Re: REGARDING FIND COMMAND?

Postby Anuj Dhawan » Sat Jul 14, 2012 8:16 pm

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"! :?
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: REGARDING FIND COMMAND?

Postby NicC » Sat Jul 14, 2012 10:21 pm

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
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: REGARDING FIND COMMAND?

Postby dick scherrer » Sat Jul 14, 2012 11:40 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: REGARDING FIND COMMAND?

Postby expat » Sun Jul 15, 2012 2:15 pm

Doesn't the search facility 3.13 or 3.14 or whatever show the line numbers ?
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Re: REGARDING FIND COMMAND?

Postby Pedro » Sun Jul 15, 2012 8:25 pm

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
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

Re: REGARDING FIND COMMAND?

Postby kandrepavan » Mon Jul 16, 2012 6:50 pm

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.
kandrepavan
 
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time

Re: REGARDING FIND COMMAND?

Postby halfteck » Mon Jul 16, 2012 8:39 pm

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.
halfteck
 
Posts: 42
Joined: Tue Nov 08, 2011 8:47 pm
Has thanked: 0 time
Been thanked: 0 time


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post