🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.asm370
Article #80

Re: Shifting memory to the right

#80
From: Don Nielsen
Date: Mon, 10 Oct 2005 14:08
86 lines
4748 bytes
Why, that's a mainframe application.  No?  And that would cost money.  Lately, mainframe + cost $ = denied.  We are now a growth company.  Translation...we are growing our network server base.  (Last week the SAN died, shutting everything down.  We mainframers all chuckled silently.)

dvn

-----Original Message-----
From: IBM Mainframe Assembler List
[mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU]On Behalf Of House, Raymon
Sent: Monday, October 10, 2005 8:48 AM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Shifting memory to the right


  Don, if you're using AbendAid, try adding a  //ABNLALL  DD DUMMY
statement to your JCL.

  Ray House
  Nielsen Media Research


-----Original Message-----
From: IBM Mainframe Assembler List
[mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Don Nielsen
Sent: Monday, October 10, 2005 9:23 AM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Shifting memory to the right

MVCIN reverses the string, say "ABCDEF" to "FEDCBA".  I'm looking for
something different.  If I had a string of 100 bytes and wanted to move
it 10 bytes to the right, it would need to first move byte 100 from the
source to byte 100 of the target, then 99, then 98, and so on.  The
current move behavior starts with byte 1, which will overwrite byte 11.

I ultimately constructed the logic building the table from the bottom
up, using MVCL to move entries up.  Massive efficiency improvement doing
it that way.  Unfortunately, on abend, I don't get the greatest look at
the tables as the entire table doesn't get dumped.  Guess I have to
learn a little about error trapping and producing snap dumps.

dvn

-----Original Message-----
From: IBM Mainframe Assembler List
[mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU]On Behalf Of Mon R. Santos
Sent: Sunday, October 09, 2005 9:53 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Shifting memory to the right


Hi Don,

Sorry for coming in late, but doesn't the MVCIN (move inverse)
instruction do that? or am I way off?


-----Original Message-----
From: IBM Mainframe Assembler List
[mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU]On Behalf Of Don Nielsen
Sent: Friday, September 30, 2005 11:56 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Shifting memory to the right


Nothing like a dumb applications programmer question to end the week.
Is there an instruction like MVCL that moves memory starting at the end
working to the beginning.  I have a table that is in sequence.  I want
to insert a new row, maintaining sequence.  That requires shifting right
the end of the table.  It would be great to just code an MVCL to do it,
but I would be overwrite data.  But if MVCL started with the last byte
and worked its way to the start, then the shift would be easy.  Does any
such instruction or function exist?

I guess I could do something silly and build the table starting at the
end of the of memory block and shift it left as I build it.

dvn

Don V Nielsen
Products & Tools
CMS
3707 Corporate Drive
Marshfield, WI 54449
donn@cmscms.com

> '715-486-8807 X434
>
Better Results, Faster!
Technical Details
Message-ID: <F57FDB5201A2AA488C21CC5CC9759029848DF9@cdmail.cmscms.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!sn-xit-04!sn-xit-12!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!cmscms.com!donn

Show Full Headers
Complete Article Headers
X-Google-Thread: fcdcb,3e46d196c2b56e33
X-Google-Attributes: gidfcdcb,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!sn-xit-04!sn-xit-12!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!cmscms.com!donn
From: Don Nielsen <donn@cmscms.com>
Newsgroups: bit.listserv.asm370
Subject: Re: Shifting memory to the right
Date: Mon, 10 Oct 2005 09:08:33 -0500
Organization: SAS Inc.
Lines: 86
Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Message-ID: <F57FDB5201A2AA488C21CC5CC9759029848DF9@cdmail.cmscms.com>
NNTP-Posting-Host: mozart.unx.sas.com
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: foggy.unx.sas.com 1128953421 30078 10.19.150.41 (10 Oct 2005 14:10:21 GMT)
X-Complaints-To: usenet@unx.sas.com
NNTP-Posting-Date: Mon, 10 Oct 2005 14:10:21 +0000 (UTC)
Comments: Gated by NETNEWS@VM.SAS.COM
Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU>
Content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Thread-Topic: Re: Shifting memory to the right
Thread-Index: AcXNRjiGvPx68kN/S4WqdwGkPfds5gAVmaUAAAENQLAAALw2sA==
X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.cc.uga.edu id
                      j9AE6g2p020909
Approved-By: Don Nielsen <donn@CMSCMS.COM>
Return-Path: owner-assembler-list@LISTSERV.UGA.EDU
X-OriginalArrivalTime: 10 Oct 2005 14:10:18.0899 (UTC) FILETIME=[58422E30:01C5CDA4]
X-Mime-Autoconverted: from 8bit to 7bit by mime827
Originator: daemon@mozart.unx.sas.com