Lindy Mayfield wrote:
How do you guys learn this stuff? So well?  I mean, it's not like
something they teach you in mainframe school, is it?

In the case of cross-memory services, I did it the same way you did, with a little less trouble. I started by reading the manuals (rather skimpy back then), and experimenting until I got something that worked (even then I found an error a few years later). By the time I found somebody else who was tying the same thing (on a CBT submission) I had pretty much figured out what and why I was doing things. Then I wrote a few macros and a subroutine and I haven't worried about it since.

However, I took a different approach - before moving the code to an SRB I moved it to storage in my own address space and executed it there. This made it easier to see whether it was working correctly, and gave me more information on the dumps. It still didn't help with timing issues (correct sequence for posting ECBs, and freeing storage).

Also you've been told to avoid the POST SVC, and use a branch entry. When I write SRB code, I first run through all the macros and services I plan to use to see what storage and registers they will need. This allows me to avoid use of registers for my purposes that get clobbered by the system. And then there are "stupid" tricks; instead of using a cross-memory POST, your home space ECB can be set with CS (compare-and-swap), which is faster if it works, and doesn't hurt when it doesn't.


Gerhard Postpischil
Bradford, VT

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to