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: 965
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 MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm

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