Does anyone know the answer to my question at the end of the note below? Is it possible to call from one TSO command to another just passing the same CPPL with a new command buffer? Any known gotchas? I have this all coded and I am getting SYSTEM ABEND CODE 66D REASON CODE 00000002 which is documented as a bad pointer in the ECT. I am passing my entry ECT.
Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Charles Mills Sent: Tuesday, May 05, 2015 5:00 PM To: [email protected] Subject: Re: Basic question on TSO commands and other executables Thanks much. > I'm surprised the doc isn't clear, but it's one of those "everyone knows > that" sort of things, so I don't doubt you. Notice I said "not very clear to me" LOL. I've written a lot of programs in my career but never a TSO command or the like. What can I say? OK, I "get" your TEST example. You bring foo into memory from a specified library telling TEST it's a CP and then run it. Thanks. > Over the decades just about everyone wrote a CALLCP command to do this, often > with variations. I'll bet there are several on the CBT site. Hmmm. I'm actually wishing to do this from within a command I will write. Is there any reason I cannot use normal MVS functions such as LOAD to find a particular FOO and then pass my own "constructed" CPPL: CPPLCBUF: Pointer to a buffer in my program containing H'21',H'4',C'FOO SOME OPERANDS' CPPLUPT: Copied from my entry CPPL. CPPLPSCB: Copied from my entry CPPL. CPPLECT: Copied from my entry CPPL. Will that work (assuming no screw-ups) or is there some "magic" that TSO performs for a CP that will be missing if I do a LOAD and BASSM or BALR? I was thinking there was (some TSO magic necessary) but perhaps there is not? Note: all unauthorized. No APF considerations here. Thanks again, Charles ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
