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
 

 

convert binary to decimal

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: convert binary to decimal
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: 2180
Location: @my desk

PostPosted: Wed Aug 13, 2008 4:19 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Aug 13, 2008 4:45 pm    Post subject: Reply to: convert binary to decimal
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 Moderator


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

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

Ashish,

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

http://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:

http://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    Post subject:
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 Moderator


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

PostPosted: Wed Aug 13, 2008 11:47 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts resume binary ftp in z/os meykh2014 All Other Mainframe Topics 4 Sun Jan 22, 2017 10:01 am
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts convert PD to ZD ram_vizag DFSORT/ICETOOL 5 Sat Nov 05, 2016 3:06 am


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