Problem Note 1582: REPEAT function in SCL may behave differently in V8 than in V6
When using the REPEAT function in SAS Component Language (SCL), if you
use the same SCL variable to contain both the return value of the REPEAT
function as well as the character expression to repeat (first argument
of the REPEAT function) as in the following code fragment,
length string $ 100;
string='*';
string=repeat(string,3);
the resulting value returned to STRING by the REPEAT function may differ
than what was returned in Version 6. This is because of a change made
in the way the return value is buffered; a change which was made to
provide better performance. However, to assure compatibility with
existing SCL applications, the previous behavior will be restored in
Version 8 TS1MO.
To circumvent the current behavior, use an alternate SCL variable to
contain the value returned by the REPEAT function. For example,
newstring=repeat(string,3);
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | SAS/AF | 64-bit Enabled Solaris | 8 TSD1 | 8.1 TS1M0 |
| Solaris | 8 TSD1 | 8.1 TS1M0 |
| OpenVMS VAX | 8 TSD1 | 8.1 TS1M0 |
| IRIX | 8 TSD1 | 8.1 TS1M0 |
| ABI+ for Intel Architecture | 8 TSD1 | 8.1 TS1M0 |
| z/OS | 8 TSD1 | 8.1 TS1M0 |
| HP-UX | 8 TSD1 | 8.1 TS1M0 |
| OpenVMS Alpha | 8 TSD1 | 8.1 TS1M0 |
| 64-bit Enabled HP-UX | 8 TSD1 | 8.1 TS1M0 |
| CMS | 8 TSD1 | 8.1 TS1M0 |
| Tru64 UNIX | 8 TSD1 | 8.1 TS1M0 |
| 64-bit Enabled AIX | 8 TSD1 | 8.1 TS1M0 |
| AIX | 8 TSD1 | 8.1 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Problem Note |
| Priority: | medium |
| Topic: | SAS Reference ==> SCL (SAS Component Language)
|
| Date Modified: | 2000-07-03 16:20:31 |
| Date Created: | 2000-01-10 16:49:51 |