Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: How to search a dataset, for number in hex format?
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

Site Director


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

PostPosted: Fri Mar 28, 2008 7:15 am    Post subject:
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

Active Member


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

PostPosted: Fri Mar 28, 2008 5:20 pm    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Jun 04, 2008 12:12 am    Post subject:
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    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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm
This topic is locked: you cannot edit posts or make replies. output data in CSV Format janmejay DFSORT/ICETOOL 3 Sat Oct 15, 2016 2:16 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us