IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to search a dataset, for number in hex format?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Padmaja Venkatesha
Warnings : 1

New User


Joined: 28 Mar 2008
Posts: 4
Location: Denver

PostPosted: Fri Mar 28, 2008 7:04 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Fri Mar 28, 2008 7:15 am
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1056
Location: Richmond, Virginia

PostPosted: Fri Mar 28, 2008 5:20 pm
Reply with quote

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
View user's profile Send private message
Padmaja Venkatesha
Warnings : 1

New User


Joined: 28 Mar 2008
Posts: 4
Location: Denver

PostPosted: Wed Apr 02, 2008 1:48 am
Reply with quote

Thanks !

I used f x'hhhhhhhh' to search the number, where hhhhhhhh is number in hexadecimal.
Back to top
View user's profile Send private message
Fazerin

New User


Joined: 03 Jun 2008
Posts: 1
Location: Amsterdam

PostPosted: Tue Jun 03, 2008 7:52 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Jun 04, 2008 12:12 am
Reply with quote

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
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts Free space of a mulitvolume PS datase... TSO/ISPF 7
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
Search our Forums:


Back to Top