John What is wrong with using macro maybe named WTP for write to programmer or WTF for write to file. The macro can use a global variable to control initialization and it can issue load to bring in supporting code with DCB, OPEN, PUT, CLOSE. The I/O could default to use a DDNAME like SYSOUT etc. and could initialize file and then use BSAM to insure unblocked record is written on each invocation. This design approach avoids any dependance on specific OS task control block and might even run on z390 on Windows and Linux for test purposes.
Don Higgins [email protected]
