The original architects were good enough to give us ED/EDMK but failed to provide UNEDIT.
Charles -----Original Message----- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Mike Shaw Sent: Wednesday, June 3, 2020 1:54 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Convert *signed* EBCDIC to packed decimal "... or am I going to have to scan for the sign characters myself, remove them, pack the result, and flip the sign if it was negative? You do have to detect and handle leading plus/minus signs in EBCDIC strings yourself. PACK won't do it. Mike Shaw MVS/QuickRef Support Group Chicago-Soft, Ltd. On Wed, Jun 3, 2020 at 4:27 PM Doug Wegscheid <dwegsch...@sbcglobal.net> wrote: > I'm getting reacquanted with s/370 assembler after a 40 years hiatus. > I'm working through some examples from my Kacmar book, and need to convert > from a character string to a packed decimal. PACK almost works, except it > does not handle a leading (or any) plus or minus signed. > Is there a *simple* way to do, or am I going to have to scan for the sign > characters myself, remove them, pack the result, and flip the sign if it > was negative? > Alternatively, is there some accessible prior art out there? >