Planet MVS Dave's IPCS Page VERBEXIT |
Dierdre: What exactly were you doin' back here? Sam: Lady, I never walk into a place I don't know how to walk out of. -- From the movie Ronin |
IP VERBX MYEXIT 'parameters'Here is same sample code to get to the parameters:
L R1,X_ABDPL Locate ABDPL SLR R3,R3 ICM R3,B'0011',ADPLOPLN-ABDPL(R1) Get length of parms JZ none L R1,ADPLEXT-ABDPL(R1) ABDPL Extension ICM R2,B'1111',ADPLOPTR-ADPLEXTN(R1) Get addr of parms JZ none
Create_Equate |
You can create your own equates to save values for easy access later in the
dump analysis. You use IBM's ADPLSEQS service routine to create equates
in the dump. |
Get_Literal |
Your dump will have a number of equates and your IPCS verb exit can get their value by calling IBM's ADPLSGTS service routine followed by calling the ADPLSSYM service routine. |
Get_Dataspace_Storage |
Retrieving storage from a dataspace into a local data area so you can process it.
I probably figured out how to do this from this Robert Wright post on IBM-Main. |
Get_NTPair |
IBM has a nice API for sharing pointers to data with the Name/Token pair. These
pairs are at the system, home (address space) and task levels.
Although I've had good luck find the name/token pairs when not setting the NTKPLCODE value, it's probably best to set it to the task, home or system level in case there is a pair with the same name at an unintended level. |
Invoke_Command |
Sometimes you would like to invoke IPCS commands to include their output in your verb exit's output area. This is done by calling the IBM ADPLSECT service routine. |
CB_Format |
You can create control block models for your own data areas that display like the "CBF" command, for example: "CBF CVT". When you want to display them in your verbexit, you can use the ADPLSFMT service |