On 3/16/2011 8:29 PM, Charles Mills wrote:
Perhaps z/OS needs a simpler way to put out data to, say, SYSPRINT or even
directly to the JESYSMSG SPOOL dataset for the job.
Boy, you can say that again!
In C you can output a message to the "printed" job information with one
statement:
printf("whatever ...");
Why isn't there something for assembler as simple as the old WTP macro
(which yes, was just a WTO in sheep's clothing) that would output a message
exactly as John says.
It would be an interesting exercise to write the simplest proper, reentrant,
RMODE=31 assembler program that output "Hello, world" to anything other than
the console. Anyone want to venture a guess on how many lines of code?
Fifty? Thirty? Can anyone do it in twenty?
Charles
Maybe because C is a high level language. Under the covers it has to
have a DCB, OPEN, then it can do the printf() thingy, and eventually
a CLOSE (or let task termination do it).
But in Assembler you can't assume any handy dandy file is available
to write to: you gotta' do it all yourself. But, c'mon: it's Assembler.
That's the point.
Most shops have libraries of macros for common uses; maybe your
shop has some kind of INITIAL macro that not only does save area
chaining but provides a DCB for messages, and another macro that
issues messages to said DCB. If not, write them yourself.
And, of course, LE-enabled Assembler has SYSPRINT available with
several macros available and no need to OPEN or CLOSE.
--
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
* To get a good Return on your Investment, first make an investment!
+ Training your people is an excellent investment
* Try our new tool for calculating your Return On Investment
for training dollars at
http://www.trainersfriend.com/ROI/roi.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html