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

NOT functionaity in Find


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

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Mon Apr 13, 2009 8:00 am
Reply with quote

Hi all,

I am in need of help on TSO Find, plz find the details

I there are way to check whether a particular position is not equal to spaces.

get the count of records having other than 'A' at position 10

Find not 'A' 10

is there any equivalent of this

Thanks
Prasad
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Apr 13, 2009 10:44 am
Reply with quote

Assuming you are asking about ISPF Editor FIND command (and not TSO).

You can use the picture flavour of FIND, for example "FIND P'¬'" to find any character that is not a blank.

As far as I know, there is no way to find a string that is "not a specific character".

O.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Apr 13, 2009 1:38 pm
Reply with quote

But you could find all the fields equal to a given parameter and then deduct that count from the total count.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon Apr 13, 2009 3:57 pm
Reply with quote

you could use exclude, as in <x all 'a' 10>
then <find all p'=' 10 nx> which would be the number of lines not having 'A' in 10. (count of not excluded lines)
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Apr 13, 2009 5:01 pm
Reply with quote

In ISPF edit, exclude all lines, find all lines with the character you want, then FLIP. The displayed lines are the ones that do not have the character.
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 To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Find a record count/numeric is multip... COBOL Programming 1
No new posts Need to find a specific STRING COBOL Programming 11
Search our Forums:

Back to Top