View previous topic :: View next topic
|
Author |
Message |
Shrinika Rajendran
New User
Joined: 06 Jun 2013 Posts: 25 Location: India
|
|
|
|
Hi all,
I need to find records that have 5 numbers continuously. It is fine to find if the data is numeric in a particular position.
But, is it possible to somehow mention the number of numeric positions we are looking for in a record?
Thanks in advance |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I suggest that you take a step back and consider thinking about how best to ask your question.
So far it's about as clear as mud, so you probably will not get any help at all.
Think about how you would like someone else to explain their problem to you |
|
Back to top |
|
|
Shrinika Rajendran
New User
Joined: 06 Jun 2013 Posts: 25 Location: India
|
|
|
|
I want to do numeric check on the fields. But not just at a particular position. But scan thru a particular length of record and find out if that record has five number continuously anywhere in that length.
Code: |
----+----1----+----2
********************
121 MINT STREET
COL SD 4436 NATL HWY
TAKE 18428 TULIP |
Here, I would want to check thru positions 1-20. The third record has 5 numbers. I want only this record.
Please let me know if you need any more details.
Thanks |
|
Back to top |
|
|
boyti ko
New User
Joined: 03 Nov 2014 Posts: 78 Location: Malaysia
|
|
|
|
in command line, you can use
FIND P'#####'
and you will find that number |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
the TS wanted a jcl solution ( probably a <sort> solution ) |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Unless this is some (censored) homework request, what is the use of doing this????? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Robert,
what a silly question
You should already know that the reply would be ...
that' s the requirement
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Shrinika Rajendran,
Can you show an example of what you want to do? I it still unclear.
For instance, we have no idea if you are looking for a particular five-digit number(s) or any old five-digit (or more) number will do. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
In the US, it would be to find records containing a postal code, though there will be a lot of false hits, especially in large cities like New York. |
|
Back to top |
|
|
|