On Tue, Sep 20, 2022 at 4:32 PM Tom Brennan <t...@tombrennansoftware.com> wrote:
> Spitting out messages with formatted values was always a hassle for me > in assembler. So years ago I wrote some code to somewhat mimic printf, > and never looked back. Invoked by macros something like this: > > #PRINTF SYSPRINT,'THIS IS LINE %D OF %D',VAR1,VAR2 > #PRINTF SYSPRINT,'THIS IS STRING %S HERE',STR1 > #PRINTF SYSPRINT,'DATA IS %08X',POINTER > Being lazy, all my current HLASM code is LE compliant using the CEEENTRY & CEETERM macros. And I just use the C runtime library routine, snprintf() to format my messages. Yes, I have embraced the "dark side" of just using Language Environment. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN