Re: Convert Zoned to Packed

2022-01-10 Thread Tom Marchant
On Fri, 7 Jan 2022 15:29:55 -0500, Dave Clark wrote: >There is no VPKZ instruction in my manual. Something new? New on the z14, I believe. You can get the Principles of Operation that corresponds to the z15 at https://publibfp.dhe.ibm.com/epubs/pdf/a227832c.pdf And the reference

Re: Convert Zoned to Packed

2022-01-07 Thread Robin Vowels
On 2022-01-08 07:25, Steve Smith wrote: Well, I'm not familiar with the VPKZ, and if not available, or traditionally, you must code two PACKs for pieces of zoned fields longer than 16 bytes. If you use two PACK instructions, it helps to PACK the upper bytes first. Same applies conversely

Re: Convert Zoned to Packed

2022-01-07 Thread Gary Weinhold
Also remember that COBOL, like any compiled or interpreted language, can define fields and operations on those fields that require an assembler subroutine to implement.  I also understand that more recent versions of the IBM z/OS COBOL compiler use decimal floating point to implement decimal

Re: Convert Zoned to Packed

2022-01-07 Thread João Reginato
ct: Re: Convert Zoned to Packed "IBM Mainframe Assembler List" wrote on 01/07/2022 03:21:30 PM: > ITYM more than 15 digits. No, the manual specifically refers to "the 16-byte second-operand limit of PACK." Since there is no separate sign in this case, those 16 byte

Re: Convert Zoned to Packed

2022-01-07 Thread Seymour J Metz
.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Assembler List [ASSEMBLER-LIST@LISTSERV.UGA.EDU] on behalf of Dave Clark [dlcl...@winsupplyinc.com] Sent: Friday, January 7, 2022 3:29 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Convert Zoned

Re: Convert Zoned to Packed

2022-01-07 Thread Dave Clark
"IBM Mainframe Assembler List" wrote on 01/07/2022 03:21:30 PM: > ITYM more than 15 digits. No, the manual specifically refers to "the 16-byte second-operand limit of PACK." Since there is no separate sign in this case, those 16 bytes are 16 digits with possible sign overpunch on

Re: Convert Zoned to Packed

2022-01-07 Thread Steve Smith
Well, I'm not familiar with the VPKZ, and if not available, or traditionally, you must code two PACKs for pieces of zoned fields longer than 16 bytes. Same applies conversely for UNPK, although ED can do it (and much more) in one pass. The maximum lengths for SS instructions with two lengths is

Re: Convert Zoned to Packed

2022-01-07 Thread Seymour J Metz
] Sent: Friday, January 7, 2022 2:34 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Convert Zoned to Packed If it is possible, how do you code in assembler to convert more than 16 digits of zoned data into a packed field? I'm presuming, of course, that a packed field can be longer than 8

Re: Convert Zoned to Packed

2022-01-07 Thread Dave Clark
"IBM Mainframe Assembler List" wrote on 01/07/2022 02:34:49 PM: > If it is possible, how do you code in assembler to convert more > than 16 digits of zoned data into a packed field? I'm presuming, of > course, that a packed field can be longer than 8 bytes in assembler. VSE > COBOL

Convert Zoned to Packed

2022-01-07 Thread Dave Clark
If it is possible, how do you code in assembler to convert more than 16 digits of zoned data into a packed field? I'm presuming, of course, that a packed field can be longer than 8 bytes in assembler. VSE COBOL can handle 18 digits, correct? So, that would be a 10-byte packed field.