It's certainly possible. I wrote one for MVS about 25 years ago. All I remember is that it had to run supervisor state (to run DIAG 8), had to be APF-authorized (to run supervisor state), had to use LRA (Load Real Address) to get the buffer addresses (discovered that the hard way), and had to be careful with page boundaries (ditto). It's no longer accessible to me. (It may no longer even exist.)
Be careful, though, it is a big security hole. Perfectly normal class G commands can punch right through z/OS security -- and if you give your z/OS guest privileges beyond class G, you are really asking for trouble. You might want to limit it to just a few needed functions, instead of "any CP command". Someone should have an example. You might ask on IBM-MAIN if you get no response here. See <http://bama.ua.edu/archives/ibm-main.html>. On Thu, 10 Nov 2005 18:43:18 -0200, FREITAS Nelson Ivo <[EMAIL PROTECTED]> wrote: >Hello Listers, > > > >Is it possible to enter CP commands to OS/390-zOS console or through TSO >environment, like it is done in VSE/ESA environment with the JCC Command * >CP ...? > > > >Or, is there a way to do this using a CMS userid through the facility of >VMCF, like it is done in VSE/ESA environment? > >Thanks in advance. > >Regards, > >Nelson Freitas > > > >
