Back to SPR List Previous Next
VARPUT does not work on the first COMMON variable in name order.
Minor Closed - Fixed Found:XS.01.12 21 APR 2010 Fixed:XS.01.13 23 APR 2010

DETAILS
 The VARPUT function fails when used on the first COMMON variable in name
 order. In the example schema, the variable CV1 is the first name
 alphabetically and the VARPUT function will return undefined and not change
 the value.
EXAMPLE PROGRAM
 RECORD SCHEMA   0  CIR
 DATA LIST
                 ID                               *             (I2)
                 CV2                              *             (I2)
                 CV1                              *             (I2)
                 CV3                              *             (I2)
 END SCHEMA
 ...

 COMPUTE RC= VARPUT('CV1','0')
 WRITE RC CV1
WORKAROUND
Create a dummy common variable called "A"
Back to SPR List Previous Next