Re: Interpretting Explicit Decimal Numbers

2022-02-16 Thread Dave Clark
"IBM Mainframe Assembler List" wrote on 02/16/2022 12:15:17 PM: > to recap - it is numerci according to REXXes rules > > up to 10 commas (for grouping) > up to one sign on the left (+ or -) > one decimal point Well, apparently, REXX doesn't consider a numeric value to have commas in i

Re: Interpretting Explicit Decimal Numbers

2022-02-16 Thread Dave Clark
"IBM Mainframe Assembler List" wrote on 02/16/2022 12:15:17 PM: > to recap - it is numeric according to REXX's rules > > up to 10 commas (for grouping) > up to one sign on the left (+ or -) > one decimal point Correct. But does REXX really retain the commas after a mathematical opera

Re: Interpretting Explicit Decimal Numbers

2022-02-16 Thread Martin Trübner
Dave, to recap - it is numerci according to REXXes rules up to 10 commas (for grouping) up to one sign on the left (+ or -) one decimal point or? Martin

Re: Interpretting Explicit Decimal Numbers

2022-02-16 Thread Dave Clark
"IBM Mainframe Assembler List" wrote on 02/16/2022 10:44:32 AM: > I you only need to find the decimal point, look at SRST Thanks, that sounds like it will be more expedient that TRT. Sincerely, Dave Clark -- Winsupply Group Services 3110 Kettering Boulevard Dayton, Ohio 45439 USA

Re: Interpretting Explicit Decimal Numbers

2022-02-16 Thread Dave Clark
"IBM Mainframe Assembler List" wrote on 02/16/2022 10:49:07 AM: > Not sure where the input string comes from... What I'm writing is a full-function external assembler REXX routine to perform generic I/O for VSAM data to and from any dynamically-specified file. Yes, z/VSE already has

Re: Interpreting Explicit Decimal Numbers

2022-02-16 Thread Retired Mainframer
I assume your desired result is x'3456700f'. You know F, the location of the first character of the string. You know L, the length of the string. You know D, the number of decimal digits desired in the result. You can build a constant array of packed values 10, 100, 1000, etc. Determine if a s

Re: Interpretting Explicit Decimal Numbers

2022-02-16 Thread Seymour J Metz
Search String (B25E). From: IBM Mainframe Assembler List on behalf of Dave Clark Sent: Wednesday, February 16, 2022 9:42 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Interpretting Explicit Decimal Numbers Thanks for all the help so far. Thin

Re: Interpretting Explicit Decimal Numbers

2022-02-16 Thread Kerry Liles
Not sure where the input string comes from, but if it is from something a user types into a field (for example) you may want to consider looping anyway. Although looping seems pedestrian and simple-minded, it does let your code detect certain kinds of garbage like: multiple signs, multiple decimal

Re: Interpretting Explicit Decimal Numbers

2022-02-16 Thread Pieter Wiid
I you only need to find the decimal point, look at SRST, or use Ed Jaffee's vector code -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Dave Clark Sent: Wednesday, 16 February 2022 17:13 To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject

Re: Interpretting Explicit Decimal Numbers

2022-02-16 Thread Dave Clark
"IBM Mainframe Assembler List" wrote on 02/16/2022 09:53:51 AM: > On 2022-02-17 01:42, Dave Clark wrote: > > Thanks for all the help so far. Things are looking good. I've > > reached the point, now, where I need to transform a zoned-decimal > > number > > with up to 31 digits of precision and

Re: Interpretting Explicit Decimal Numbers

2022-02-16 Thread Robin Vowels
The TRT instruction is useful in locating one or more specific characters, such as a decimal point. On 2022-02-17 01:42, Dave Clark wrote: Thanks for all the help so far. Things are looking good. I've reached the point, now, where I need to transform a zoned-decimal number with up to 31 digi

Interpretting Explicit Decimal Numbers

2022-02-16 Thread Dave Clark
Thanks for all the help so far. Things are looking good. I've reached the point, now, where I need to transform a zoned-decimal number with up to 31 digits of precision and up to 15 digits for scale with an external sign and an explicit decimal point into a packed number that is prope

Announcement of z390 Mainframe Assembler and Emulator Release V1.8.0 on Github

2022-02-16 Thread Don Higgins
z390 User Group and IBM Assembler List Announcement of z390 Portable Mainframes Assembler and Emulator Release V1.8.0 on Github: https://github.com/z390development/z390/releases/tag/v1.8.0 See the above Github link for summ