On 2017-10-19, at 11:30:28, Steve Smith wrote: > I am not an expert on BSAM, but I believe you can only read whole > blocks (physical records), not pieces of them, nor more than one per > READ. > > Are you missing a "not" in "It seems that specifying the number of > bytes is allowed for RECFM=U."? > > You may do better with this question on IBM-MAIN. This isn't really > an assembly language question. > > > On Thu, Oct 19, 2017 at 1:16 PM, Massimo Biancucci wrote: >> Hi everybody, >> >> I'm trying to read byte-by-byte (or groups) a RECFM=U dataset with a READ >> macro. >> >> I read the post-answer by Steve Myers: >> http://ibmmainframes.com/about63436.html >> >> and everything was ok up to a small change in order to read some bytes and >> not the entire block. >> Don't do that!
Rexx now supports RECFM=U. It might be easier to read with Rexx (which will read entire blocks; you get no choice) and dissect them with Rexx string operations: SUBSTR(), PARSE, C2D() ... -- gil
