home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / TEXT / REXX20.ZIP / REXX.TXT < prev    next >
Text File  |  1992-06-17  |  6KB  |  75 lines

  1. There are 4 files in this fix, unZIP them to either a diskette or directory. In order to use these
  2. files, you will need to either copy them to the ROOT directory of the BOOT drive, and then
  3. restart your system, or use the Install diskette and ESC to the A: prompt and replace these
  4. files in your OS2\DLL directory. The changes will then take effect when you reboot your
  5. system.
  6.  
  7. The files in the ZIP files are -
  8.                                                                                 
  9.    REXX.TXT (this file)
  10.    REXX.DLL                                                                     
  11.    REXXAPI.DLL                                                                  
  12.    REXXINIT.DLL                                                                 
  13.    REXXUTIL.DLL                                                                 
  14.                                                                                 
  15. These contain the fixes for APARs PJ03945 and PJ04178, plus the following       
  16. REXXUTIL fix:                                                                   
  17.                                                                                 
  18.   "The SysIni function doesn't release allocated storage when the 'ALL:'        
  19.   parameter is used."                                                           
  20.                                                                                 
  21. APAR:    PJ04178                                                                
  22.                                                                                 
  23. Title: VALUE FUNCTION RETURNS INCORRECT VALUE                                   
  24.                                                                                 
  25. Problem Description                                                             
  26. The following REXX program produces incorrect output :                          
  27.                                                                                 
  28. /* */                                                                           
  29. Stem. = ''                                                                      
  30. Key = 'AAA'                                                                     
  31. KVal = 'BBB'                                                                    
  32. call Test                                                                       
  33. Stem.!AAA = ''                                                                  
  34. call Test                                                                       
  35. exit                                                                            
  36.                                                                                 
  37. Test:                                                                           
  38. say                                                                             
  39. say 'This should be null: "'Stem.!AAA'"'                                        
  40. Old = value(('Stem.!'Key, KVal)                                                 
  41. say 'This should be null: "'Old'"'                                              
  42. say 'This should be BBB: "'Stem.!AAA'"'                                         
  43. return                                                                          
  44.                                                                                 
  45.  -----------------------------------------------                                
  46. Initializing Stem. = '' should initialize Stem.!AAA to ''.                      
  47. The first time Test is called, in correct output is produced.                   
  48.                                                                                 
  49. ********************                                                            
  50.                                                                                 
  51. APAR:    PJ03945                                                                
  52.                                                                                 
  53. Title: REXX: VALUE(.."OS2ENVIRONMENT"..) TO SET ENV HOSES PIB INFO.             
  54.                                                                                 
  55. Problem Description                                                             
  56.                                                                                 
  57. "RexxStart()" Bug                                                               
  58.                                                                                 
  59. I use RexxStart() from a "C" program to call a REXX procedure. I have           
  60. recently diagnosed a problem where if I set an environment variable in          
  61. this rexx procedure, the called programs environment is corrupted (as           
  62. a "C" "getenv()" call fails to retrieve a variable that is known to             
  63. exist.                                                                          
  64.                                                                                 
  65. Depending on the change to the environment, I sometimes get an invalid          
  66. value returned in the "pib_pchcmd" field from a "DosGetInfoBlocks()"            
  67. call.  This invalid value is the tail part of the new variable value.           
  68. Thinking that the bug may only occur when expanding the size of an              
  69. environment variable or the environment, I tried to shorten the path            
  70. variable, this removed the problem with "pib_pchcmd" being corrupted            
  71. but still caused the "getenv()" to fail.                                        
  72.                                                                                 
  73. Note that the "getenv()" does not always fail, it obviously depends             
  74. on the change.                                                                  
  75.