skip to main content

Library Routines : REG_SET_VALUE, DISPLAY_REG_SET_VALUE

REG_SET_VALUE, DISPLAY_REG_SET_VALUE
The REG_SET_VALUE library routine sets the data for the default or unnamed value of a specified registry key. The data must be a text string.
To perform this action on the Windows client machine in an Application Server architecture, use DISPLAY_REG_SET_VALUE instead of REG_SET_VALUE.
Syntax:
 CALL "REG_SET_VALUE" USING openKey
Parameters:
This handle is returned by the REG_CREATE_KEY, REG_CREATE_KEY_EX, REG_OPEN_KEY or REG_OPEN_KEY_EX library routine, or it can be one of the following predefined keys, defined in iscoblib.def:
Return code:
returnCode can be any signed numeric data item and provides additional information:
Operation failed. Click here for a list of error codes.
Examples:
Example - Set a registry value
working-storage section.
01 subkey-handle    usage unsigned-long.
77 status-code      pic 9(3).
77 value-data       pic x(50).
procedure division.
    move "iscobol-value" to value-data
    call "reg_set_value" using subkey-handle  

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left