I am (re) learning HL/ASM on z/OS and wanted to start with the basics - hello world. All the examples I could find either:
- wrote to the operator console (WTO), which I can't do in my shop, because it is too noisy
- were not re-entrant (in non-z/OS terms, the code wasn't read-only)
Does someone have an example?
I am (re) learning HL/ASM on z/OS and wanted to start with the basics - hello world. All the examples I could find either:
- wrote to the operator console (WTO), which I can't do in my shop, because it is too noisy
- were not re-entrant (in non-z/OS terms, the code wasn't read-only)
Does someone have an example?
Unlike other languages, there is not a lot of information on HL/ASM, re-entrancy, UNIX System Services that I could find via Stack Overflow (or google).
Here is a working example:
To assemble and link, make sure you pull in the
SYS1.CSSLIBcode for BPX1WRT:You can now run
./a.outto get: