On 2020-04-20, at 11:09:46, Ed Jaffe wrote: > > On 4/20/2020 9:40 AM, Paul Gilmartin wrote: >> >>> For such a case, I will always code: >>> >>> DC CL8'&RQS. ' >>> >> Does that truncate properly, but quietly if: >> o &RQS is 8 bytes? >> o &RQS is 9 bytes? (Should warn.) > > Your "should warn" above is an incorrect assertion. > > DC CL8'12345678901234567890' is perfectly legal and should *NOT* warn (unless > some new warning option was added to HLASM that I missed). > I've used little assembler since H. I suppose it is what it was.
Generally, I dislike quiet truncation. That's what substring operators are for. I suspect it truncates the string. But I'd not be astonished if it stored the entire string but with a length attribute of 8. Why do you prefer DC CL8'&RQS. ' and possible truncation to simply DC CL8'&RQS'? -- gil
