Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 52
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: 972
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
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Need help with 002-030 ABEND in TSO R... Terry Tallian TSO/ISPF 0 Sat Mar 17, 2018 1:13 am
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm
No new posts OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us