|
|
| Author |
Message |
Padmaja Venkatesha Warnings : 1 New User
Joined: 28 Mar 2008 Posts: 4 Location: Denver
|
|
|
|
The dataset has thousands of records with numbers in hexadecimal format. I also have a copybook with which I can view the dataset in readable form using Startool.
How can I search for the number using its the decimal equivalent ?
FIND command only searches for character strings.
If 3.14 option is the answer, how should the search string be put up?
Thanks,
Padmaja |
|
| Back to top |
|
 |
References
|
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8599 Location: 221 B Baker St
|
|
|
|
Hello,
| Quote: |
| FIND command only searches for character strings. |
This is incorrect. The tso/ispf FIND (in Browse or Edit) will search for a hex value. Look at the reply in your "other topic" for the syntax.
Also, to continue a dialog, do not start a new topic, but rather "reply" to the existing topic. |
|
| Back to top |
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 497 Location: Richmond, Virginia
|
|
|
|
Hexadecimal is NOT a format - it is just a convenient way to see the bits, since 2^4 = 16.
EBCDIC and ASCII are character encoding schemes, and you can see their encodings easily in hex.
Everything (alpha, numeric, "date", etc.), on a mainframe, can be seen in hexadecimal - just browse or edit/view and use the HEX ON command - there it is.
The bit arrangement determines the format - binary, packed-dec, display. |
|
| Back to top |
|
 |
Padmaja Venkatesha Warnings : 1 New User
Joined: 28 Mar 2008 Posts: 4 Location: Denver
|
|
|
|
Thanks !
I used f x'hhhhhhhh' to search the number, where hhhhhhhh is number in hexadecimal. |
|
| Back to top |
|
 |
Fazerin
New User
Joined: 03 Jun 2008 Posts: 1 Location: Amsterdam
|
|
|
|
| Phrzby Phil wrote: |
Hexadecimal is NOT a format - it is just a convenient way to see the bits, since 2^4 = 16.
EBCDIC and ASCII are character encoding schemes, and you can see their encodings easily in hex.
Everything (alpha, numeric, "date", etc.), on a mainframe, can be seen in hexadecimal - just browse or edit/view and use the HEX ON command - there it is.
The bit arrangement determines the format - binary, packed-dec, display. |
How can I search a packed-dec value like
'I used f x'hhhhhhhh' to search the number, where hhhhhhhh is number in hexadecimal.' |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8599 Location: 221 B Baker St
|
|
|
|
Hello Fazerin and welcome to the forums,
| Quote: |
| How can I search a packed-dec value like |
Pretty much the same way. You can use f x'ddddddds' to search for the packed value where the d's are digits and the s is the sign.
If this is not what you are asking, please clarify. |
|
| Back to top |
|
 |
|
|