On 15 November 2017 at 15:58, John McKown <[email protected]>
wrote:


> This has lead me into the world of the weird. Where possible, instead of
> using QSAM to do my printing to SYSPRINT, I can do a fopen() and
> fprintf() with fclose() at the end. These routines free me from the
> necessity of having a DCB in my program. I can simply write code like:
>

I feel spoiled with CMS Pipelines filters using a macro doing that for me
in my assembler code:
  PRINTF 'IUCV call failed RC=%d',(R3)
The macro figures out the number of substitutions and builds the parameter
list on the stack. It even does indirection
  PRINTF  'Socket %>d and reason %>d',GSSOCK,GSREAS

The runtime environment provided by CMS Pipelines has the logic to process
the format string and substitute the values.

Rob

Reply via email to