Back to SPR List Previous Next
Various problems with undefined strings in tabfiles
Minor Closed - Fixed Found:XS.01.11 01 JUL 2009 Fixed:XS.01.12 01 JUL 2009

DETAILS
 Setting tabfile string variables to undefined does not appear to change the current
 value, or displays junk in the first character.

 The example program writes
 "The Old Value                   " (padded with blanks)
 not * (missing)
EXAMPLE PROGRAM
 PROGRAM TUPDATE
 integer nmiss
 string  smiss
 COMPUTE DATA = 'The Old Value'
 SET DATA (SMISSING)
 COMPUTE DATA = smiss
 COMPUTE NUM = 3
 ROW IS JUNK.TAB1TAB INDEXED BY CASE ('1')
 write "Here the value of data is "  ['"'+data+'"']
 PUT VARS NUM
 PUT VARS DATA
 END ROW IS
 END PROGRAM
 PROGRAM
 PROCESS ROWS JUNK.TAB1TAB
 GET VARS ALL
 write "But here the value of data is " ['"'+data+'"']
 WRITE ALL
 END ROW
 END PROGRAM
WORKAROUND
Set strings to "" rather than undefined.
Back to SPR List Previous Next