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

FIND Command for NOT EQUAL to value


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

New User


Joined: 17 Feb 2007
Posts: 52
Location: USA

PostPosted: Tue Feb 05, 2008 9:36 pm
Reply with quote

Hi,

Please let me know if there is any direct FIND command on ISPF Command prompt to get value NOT EQUAL to specified value.

For example. After opening PDS member or FILE in BROWSE or EDIT mode, I want to find value in a specified column which is NOT EQUAL to zero.

Command ===> F 0 23 -----> This will give me value 0 in column 23. But I need opposite of that (NOT EQUAL to 0).

Also is there a command to check GREATER than SPACES in specified column

Command ===> F ' ' 45 ----> Will let me know if there is SPACE in column 45. But I need opposite of that. All I need is to check if there is any value at column 45 in a FILE. Same for NUMERIC data.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Tue Feb 05, 2008 9:44 pm
Reply with quote

Use the eXclude command to exclude (from view) lines with '0' in 23. Those left will be the others. There are other options available, so use F1 and experiment.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Feb 05, 2008 9:50 pm
Reply with quote

X all;f '0' 23 all;flip

now what will show is what doesn't have a 0 in 23.
Back to top
View user's profile Send private message
Hari1282

New User


Joined: 31 Mar 2008
Posts: 7
Location: Pune, INDIA

PostPosted: Thu Apr 03, 2008 4:04 pm
Reply with quote

I was also struggling to know this command.
Thanks a lot yaar.
Back to top
View user's profile Send private message
karthick2004

New User


Joined: 12 Mar 2008
Posts: 4
Location: Trivandrum

PostPosted: Thu Apr 03, 2008 4:24 pm
Reply with quote

AJAYREDDY wrote:
Hi,

Please let me know if there is any direct FIND command on ISPF Command prompt to get value NOT EQUAL to specified value.

For example. After opening PDS member or FILE in BROWSE or EDIT mode, I want to find value in a specified column which is NOT EQUAL to zero.

Command ===> F 0 23 -----> This will give me value 0 in column 23. But I need opposite of that (NOT EQUAL to 0).

Also is there a command to check GREATER than SPACES in specified column

Command ===> F ' ' 45 ----> Will let me know if there is SPACE in column 45. But I need opposite of that. All I need is to check if there is any value at column 45 in a FILE. Same for NUMERIC data.



The following commands may answer your second query,

f all p'@' 23 - Will find any alphabet in column 23
f all p'#' 23 - Will find any numeric value in column 23
icon_biggrin.gif
Back to top
View user's profile Send private message
krisharvind

New User


Joined: 03 Sep 2003
Posts: 1
Location: Chennai, India

PostPosted: Sun May 11, 2008 4:41 pm
Reply with quote

This might be unrelated to the question. To add to what Kat has to say, you can use these additional pattern finds as well

= any character
. non-displayable characters
@ alphabetic characters
- non-numeric characters
# numeric characters
< lower case alphabetics
$ special characters
> upper case alphabetics
¬ non-blank characters

For example

f p'@' 23 45 will find you all the alphabets between position 23 & 45.
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
Search our Forums:

Back to Top