View previous topic :: View next topic
|
Author |
Message |
AJAYREDDY
New User
Joined: 17 Feb 2007 Posts: 52 Location: USA
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
X all;f '0' 23 all;flip
now what will show is what doesn't have a 0 in 23. |
|
Back to top |
|
|
Hari1282
New User
Joined: 31 Mar 2008 Posts: 7 Location: Pune, INDIA
|
|
|
|
I was also struggling to know this command.
Thanks a lot yaar. |
|
Back to top |
|
|
karthick2004
New User
Joined: 12 Mar 2008 Posts: 4 Location: Trivandrum
|
|
|
|
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
|
|
Back to top |
|
|
krisharvind
New User
Joined: 03 Sep 2003 Posts: 1 Location: Chennai, India
|
|
|
|
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 |
|
|
|