VDEFINEVGETVPUT(These links are to the z/OS v1.13 information center. However, unless your shop is running a seriously-backleveled version of ISPF -- which I concede is possible, given that many application outsourcing managers love to save money by hiring semi-literate clerks to maintain their 360/195s -- you shouldn't see significant differences.)
For VDEFINE and VPUT, you'll want to use ISPLINK. It's been quite a few years since I wrote any COBOL, but as I recall the syntax is:
CALL 'ISPLINK' USING parameter1,
parameter2,...
So for VDEFINE, you'll code:
CALL 'ISPLINK' USING 'VDEFINE',
name-list,
variable-structure,
format-array,
length-array
[,option-list].
name-list is the list of Rexx variable names, in the format:
variable-structure is an 01-level structure with the COBOL variables defined as lower-level members; they don't
have to have the same names as the Rexx variables, although you'll find it easier to keep track if they do.
format-array and
length-array are arrays (or "internal tables", ISTR they are denoted in COBOL) of pictures X(8) and S9(9) COMP respectively, giving the types and lengths of the variables. Valid types are given in the fine manual. For
option-list, you'll just want to use the literal 'LIST'.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day