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

convert binary to decimal


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashish kumar gupta

New User


Joined: 13 Aug 2008
Posts: 1
Location: CHENNAI

PostPosted: Wed Aug 13, 2008 3:37 pm
Reply with quote

can anyone guide me how to convert data which is in binary to decimal,
like whats the sort card that i need to use
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Aug 13, 2008 4:19 pm
Reply with quote

Ashish,

Quote:
how to convert data which is in binary to decimal


It's difficult to make out something about your requirement from the above statement. can you be more precise on your requirement.

Posting sample input/output records would help others to give you better solutions.

Thanks,
Arun
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Aug 13, 2008 4:45 pm
Reply with quote

Ashish,

Quote:
can anyone guide me how to convert data which is in binary to decimal


By decimal, if you are referring to zoned decimal then you can use something like BI, TO=ZD in your sort card for the conversion.

As requested, post the sample input and output with the field positions.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Aug 13, 2008 10:31 pm
Reply with quote

Ashish,

See the following for information on and examples of numeric conversions with DFSORT:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/2.4.7?DT=20060615173822

See the following for information on and examples of editing numeric values with DFSORT:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/2.4.8?DT=20060615173822
Back to top
View user's profile Send private message
sivaram.ch

New User


Joined: 28 Jun 2005
Posts: 11

PostPosted: Wed Aug 13, 2008 11:17 pm
Reply with quote

Declaring 2 variables one with binary and another with decimal.Move the value in Binary holding variable to decimal holding variable that will do.Thanks.


Sivaram.Ch
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Aug 13, 2008 11:47 pm
Reply with quote

Quote:
Declaring 2 variables one with binary and another with decimal.Move the value in Binary holding variable to decimal holding variable that will do.Thanks.


The OP said
Quote:
whats the sort card that i need to use


YOUR answer has nothing to do with that question.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
Search our Forums:

Back to Top