Re: convert Decimal to bytes
On Wed, Jun 27, 2012 at 9:01 AM, Elardus Engelbrecht elardus.engelbre...@sita.co.za wrote: As zMan observed, the OP has not replied [1] sofar, I think you mean we should rather crack the nutty OP... ;-) But then, perhaps he/she/it received some offline answers and got what he/she/it wants... Right...(s)he's bloody rude not to acknowledge the attempts at assistance! -- zMan -- I've got a mainframe and I'm not afraid to use it -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
On Sun, Jun 24, 2012 at 4:42 PM, Scott Ford scott_j_f...@yahoo.com wrote: There are a lot of ways to crack this nut, rexx,perl, various clist languages Assembler. Man up! :-) Notice we've never heard from the OP again... -- zMan -- I've got a mainframe and I'm not afraid to use it -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
In e3bdb5aee89ab14caaf930af702759a409f...@exmbx2010-1.campus.mcgill.ca, on 06/20/2012 at 09:28 PM, Uriel Carrasquilla uriel.carrasqui...@mail.mcgill.ca said: 1024 bytes = 1 Kilobyte Actually, 1000 bytes = 1 Kilobyte and 1024 bytes = 1 Kibibyte. -- Shmuel (Seymour J.) Metz, SysProg and JOAT Atid/2http://patriot.net/~shmuel We don't care. We don't have to care, we're Congress. (S877: The Shut up and Eat Your spam act of 2003) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
In cae1xxde8oowf8pdjqa0ypnyj0xahusade2sqqnfxvddv9ot...@mail.gmail.com, on 06/21/2012 at 04:14 PM, John Gilmore jwgli...@gmail.com said: Since he probably has a PC he could of course use the Windows calculator. What if he's not running wiondoze on his PC? -- Shmuel (Seymour J.) Metz, SysProg and JOAT Atid/2http://patriot.net/~shmuel We don't care. We don't have to care, we're Congress. (S877: The Shut up and Eat Your spam act of 2003) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
-Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@listserv.ua.edu] On Behalf Of Shmuel Metz (Seymour J.) Sent: Friday, June 22, 2012 9:22 AM To: IBM-MAIN@listserv.ua.edu Subject: Re: convert Decimal to bytes In cae1xxde8oowf8pdjqa0ypnyj0xahusade2sqqnfxvddv9ot...@mail.gmail.com, on 06/21/2012 at 04:14 PM, John Gilmore jwgli...@gmail.com said: Since he probably has a PC he could of course use the Windows calculator. What if he's not running wiondoze on his PC? -- Shmuel (Seymour J.) Metz, SysProg and JOAT Then he is wise, and likely runs some UNIX variant like Linux or MacOS/X or *BSD. He can then use the bc command. If he likes RPN calculators, he can use dc. If he is a GUI user (at least on Linux), he can use gcalctool. Or many other possibilities. On z/OS you can use awk or Perl! -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
Art aa...@usa.net wrote: Hi would anyone know of a calculator and/or formal via rexx that I could use/setup to convert decimal to bytes. I would like to multiply x (decimal) by 80 and add an extra 80 bytes. Is this a homework assignment? Based on the lots of feedback, it is still not clear what you are trying to achieve. Especially the word 'bytes' is vague to say the least. Please give us an example of your calculations. Please state the base of each number shown. Groete / Greetings Elardus Engelbrecht -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
Elardus, Amen my friend, hard help when can't see what the are trying to do Scott ford www.identityforge.com On Jun 21, 2012, at 5:38 AM, Elardus Engelbrecht elardus.engelbre...@sita.co.za wrote: Art aa...@usa.net wrote: Hi would anyone know of a calculator and/or formal via rexx that I could use/setup to convert decimal to bytes. I would like to multiply x (decimal) by 80 and add an extra 80 bytes. Is this a homework assignment? Based on the lots of feedback, it is still not clear what you are trying to achieve. Especially the word 'bytes' is vague to say the least. Please give us an example of your calculations. Please state the base of each number shown. Groete / Greetings Elardus Engelbrecht -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
On Wed, Jun 20, 2012 at 5:15 PM, Art aa...@usa.net wrote: Hi would anyone know of a calculator and/or formal via rexx that I could use/setup to convert decimal to bytes. I would like to multiply x (decimal) by 80 and add an extra 80 bytes. Yes to the question (even if it doesn't have a question mark), though I have no idea what a formal is in this context. As others have noted, this is either a homework assignment or a very confused question. y = (x+1) * 80 would seem to work, but that's so obvious that I'm assuming it's not the answer. If I just did your homework for you: abandon hope, you'll never make it if you couldn't figure that out. That sounds harsh but it's just being realistic. -- zMan -- I've got a mainframe and I'm not afraid to use it -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
Converting decimal to bytes is trivial. Locate the first 'd' and replace with 'byt'. Locate the string 'cimal' and replace with 's'. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@listserv.ua.edu] On Behalf Of zMan Sent: Thursday, June 21, 2012 8:47 AM To: IBM-MAIN@listserv.ua.edu Subject: Re: convert Decimal to bytes On Wed, Jun 20, 2012 at 5:15 PM, Art aa...@usa.net wrote: Hi would anyone know of a calculator and/or formal via rexx that I could use/setup to convert decimal to bytes. I would like to multiply x (decimal) by 80 and add an extra 80 bytes. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
I come very late to this thread, but my conjecture is that the OP's problem is a terminological one. I think he wants to be able to convert display, character-string representations like '202' of decimal numbers into their internal, storage representations. He does need to tell us what environment and language he is using so that we can tell him how, specifically, to solve his problem. Since he probably has a PC he could of course use the Windows calculator. John Gilmore, Ashland, MA 01721 - USA On 6/21/12, Uriel Carrasquilla uriel.carrasqui...@mail.mcgill.ca wrote: Under your Linux machine, run sed with s/bytes/decimal/gi and your are done. From: IBM Mainframe Discussion List [IBM-MAIN@listserv.ua.edu] on behalf of Charles Mills [charl...@mcn.org] Sent: Thursday, June 21, 2012 1:17 PM To: IBM-MAIN@listserv.ua.edu Subject: Re: convert Decimal to bytes Converting decimal to bytes is trivial. Locate the first 'd' and replace with 'byt'. Locate the string 'cimal' and replace with 's'. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@listserv.ua.edu] On Behalf Of zMan Sent: Thursday, June 21, 2012 8:47 AM To: IBM-MAIN@listserv.ua.edu Subject: Re: convert Decimal to bytes On Wed, Jun 20, 2012 at 5:15 PM, Art aa...@usa.net wrote: Hi would anyone know of a calculator and/or formal via rexx that I could use/setup to convert decimal to bytes. I would like to multiply x (decimal) by 80 and add an extra 80 bytes. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
convert Decimal to bytes
Hi would anyone know of a calculator and/or formal via rexx that I could use/setup to convert decimal to bytes. I would like to multiply x (decimal) by 80 and add an extra 80 bytes. Regards -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
I'm not sure what you're asking. It would be helpful to provide more information to put the problem in context. -- Donald Grinsell State of Montana 406-444-2983 dgrins...@mt.gov A wonderful fact to reflect upon, that every human creature is constituted to be that profound secret and mystery to every other. ~ Charles Dickens (1812-70) -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@listserv.ua.edu] On Behalf Of Art Sent: Wednesday, 20 June 2012 15:16 To: IBM-MAIN@listserv.ua.edu Subject: convert Decimal to bytes Hi would anyone know of a calculator and/or formal via rexx that I could use/setup to convert decimal to bytes. I would like to multiply x (decimal) by 80 and add an extra 80 bytes. Regards -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
On 20 June 2012 17:15, Art aa...@usa.net wrote: Hi would anyone know of a calculator and/or formal via rexx that I could use/setup to convert decimal to bytes. I would like to multiply x (decimal) by 80 and add an extra 80 bytes. Not clear what you're asking, but perhaps the d2c() function? This would be the thing if you want to turn a REXX (decimal/string) number into one or more (binary) bytes. Tony H. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
Art, Tony's suggestion using a d2c in rexx works well..not sure what you are asking.. An address in hex to decimal, then bytes ? Scott ford www.identityforge.com On Jun 20, 2012, at 5:28 PM, Tony Harminc t...@harminc.net wrote: On 20 June 2012 17:15, Art aa...@usa.net wrote: Hi would anyone know of a calculator and/or formal via rexx that I could use/setup to convert decimal to bytes. I would like to multiply x (decimal) by 80 and add an extra 80 bytes. Not clear what you're asking, but perhaps the d2c() function? This would be the thing if you want to turn a REXX (decimal/string) number into one or more (binary) bytes. Tony H. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
Is this for a class? However, there is a TSO-REXX newsgroup if you are interested in coding in REXX. Most platforms that can run REXX are welcomed. For TSO-REXX subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO TSO-REXX Lizette -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@listserv.ua.edu] On Behalf Of Art Sent: Wednesday, June 20, 2012 2:16 PM To: IBM-MAIN@listserv.ua.edu Subject: convert Decimal to bytes Hi would anyone know of a calculator and/or formal via rexx that I could use/setup to convert decimal to bytes. I would like to multiply x (decimal) by 80 and add an extra 80 bytes. Regards -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: convert Decimal to bytes
I am not sure what you are trying to accomplish so this may or may not be useful. I have a routine that displays a Unix directory converting the file sizes from bytes to GB, MB or KB: /* convert bytes to nnn.n KB, MB, or GB */ Select When bytes = 1024*1024*1024 Then filesize = Trunc(bytes/(1024*1024*1024),1) 'GB'; When bytes = 1024*1024 Then filesize = Trunc(bytes/(1024*1024),1) 'MB'; When bytes = 1024 Then filesize = Trunc(bytes/1024,1) 'KB'; Otherwise filesize = bytes 'bytes'; End It would be easy enough to add 80 to bytes before this segment or as part of the formulae. -- Donald Grinsell State of Montana 406-444-2983 dgrins...@mt.gov The power of accurate observation is often mistaken for cynicism by those who have not got it. ~ George Bernard Shaw -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@listserv.ua.edu] On Behalf Of Grinsell, Don Sent: Wednesday, 20 June 2012 15:23 To: IBM-MAIN@listserv.ua.edu Subject: Re: convert Decimal to bytes I'm not sure what you're asking. It would be helpful to provide more information to put the problem in context. -- Donald Grinsell State of Montana 406-444-2983 dgrins...@mt.gov A wonderful fact to reflect upon, that every human creature is constituted to be that profound secret and mystery to every other. ~ Charles Dickens (1812-70) -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@listserv.ua.edu] On Behalf Of Art Sent: Wednesday, 20 June 2012 15:16 To: IBM-MAIN@listserv.ua.edu Subject: convert Decimal to bytes Hi would anyone know of a calculator and/or formal via rexx that I could use/setup to convert decimal to bytes. I would like to multiply x (decimal) by 80 and add an extra 80 bytes. Regards -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN