On Thu, May 17, 2012 at 11:07 PM, John Ehrman <[email protected]> wrote:
> Ray Mansell provided this tidier version: > > >So then this simpler variation ought to work: > > > > Macro > >&Lab MVC2 &Target,&Source > >&Lab MVC &Target(0),&Source X'D200',S(&Target),S(&Source) > > Org *-5 Back up to length field > > DC AL1(L'&Source-1) Overlay source length (-1) > > Org *+4 Step to next instruction > > MEnd > > Thanks! > John Ehrman > I think in this one we're missing the period after &Target to avoid HLASM consider it an array subscript... ? I can see that copying without padding may be fine and deliberate. But copying into a field that is too small would rarely be desirable (or coded differently to enlighten those who read the code later). Couldn't the macro also arrange for an error when the 2nd operand is longer than the first one? I guess it's also common to not know the length of the first operand. Rob
