BSAM is quite simply a pain but that’s what snap uses I put in a lot of effort into my Estae such when the PSW at +68 wasn’t anywhere in the neighborhood of my program chasing the rb to find my program last registers myprg == cdname
Than have it quickly role off the screen with wto’s rather than saving it in a GDG dataset That’s what being snapped to after dynamically allocating The strhdr has to match the storage operand I choose snap because it was a simple abend not involving multiple address spaces Am thinking if I get really frustrated I may use two sets of dcb s open and close and open Extend Thank you > On Mar 14, 2023, at 7:23 AM, Mike Kerford-Byrnes <m...@hill-leys.com> wrote: > > Perhaps I has missed something here. > > > > From what I can glean form the posts to date, Joe seeks to display a set of > messages from an area of memory to the SNAP dataset, for which a DCB has > been defined as per the manual. > > > > A BSAM WRITE is used to add records to the dataset looping until "Last > Message" is detected and written. > > > > Many moons ago, when I developed the odd bit of code and had a similar > requirement, I did not use BSAM WRITE. Having set up a SNAP DCB (using > values that I would never have contemplated unless instructed), I then used > the SNAP macro using the STORAGE operand and let IBM code do the rest. Yes, > I got a lot of stuff that I did not need as part of the SNAP process, but it > served my purpose in that the storage was displayed (and I didn't have to > worry about RDWs, BDWs and Blocks). > > > > My view was that since the code was of a temporary nature I did not want to > focus a lot of time on it - preferring to concentrate on the actual > application. To that end, SNAP was most helpful. > > > > Mike Kerford-Byrnes > > > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN