Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FIND Command for NOT EQUAL to value

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
AJAYREDDY

New User


Joined: 17 Feb 2007
Posts: 47
Location: USA

PostPosted: Tue Feb 05, 2008 9:36 pm    Post subject: FIND Command for NOT EQUAL to value
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

Active Member


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

PostPosted: Tue Feb 05, 2008 9:44 pm    Post subject:
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    Post subject:
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    Post subject: Thanks
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    Post subject: Re: FIND Command for NOT EQUAL to value
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us