Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
VCOPY—create a copy of a variable z/OS ISPF Services Guide SC19-3626-00 |
|
This service is used only with CALL ISPLINK or CALL ISPLNK calls. The VCOPY service allows a program module to obtain a copy of dialog variables. The copied data is in character string format and can be accessed in either "locate" or "move" mode. The variable names can be specified as a single 8-character value, a list enclosed in parentheses, or a name-list structure. In LOCATE mode an array of pointers must be supplied to receive the data address. An array of lengths must be supplied to receive the data lengths. In locate mode, the VCOPY service automatically allocates storage for the data, and returns the address and length of each variable to the caller. In move mode, an array of lengths must be supplied on input. Its values map the structured area which must be supplied to receive the data. The caller first allocates storage for the data, and then invokes VCOPY, passing the address and length of the storage area into which the data is to be copied. The length array is then set with the data lengths. When a variable has been masked and is accessed by VCOPY, the output string will contain the mask characters. When specifying the length to receive these variables on the VCOPY call, the length should be as long as the mask, not the defined variable. See VMASK—mask and edit processing for a full description of the VMASK service. As with other DM component services, the search for each variable starts with the defined area of the function pool, followed by the function's implicit area, followed by the shared pool, and then the profile pool. If a variable of the specified name is not found, VCOPY issues a return code of 8. Command invocation format
Call invocation formatParameters
Return codesThese return codes are possible:
ExampleCopy the value in dialog variable QROW to a field named QROWSDATA in this PL/I program
module. Perform the copy in move mode, as opposed to locate mode.
Variable L8 contains a value of 8.
|
Copyright IBM Corporation 1990, 2014
|