/*********************************************************************/ /* */ /* SetRexxVariable - Set the value of a REXX variable */ /* */ /*********************************************************************/ INT SetRexxVariable( PSZ name, /* REXX variable to set */ PSZ value) /* value to assign */ { SHVBLOCK block; /* variable pool control block*/ block.shvcode = RXSHV_SYSET; /* do a symbolic set operation*/ block.shvret=(UCHAR)0; /* clear return code field */ block.shvnext=(PSHVBLOCK)0; /* no next block */ /* set variable name string */ MAKERXSTRING(block.shvname, name, strlen(name)); /* set value string */ MAKERXSTRING(block.shvvalue, value, strlen(value)); block.shvvaluelen=strlen(value); /* set value length */ return RexxVariablePool(&block); /* set the variable */ }