SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 67249: Using a long password in the LIBNAME statement for Amazon Redshift fails in SAS® Customer Intelligence

DetailsHotfixAboutRate It

In SAS Customer Intelligence, using a LIBNAME statement that connects to Amazon Redshift fails when the LIBNAME statement exceeds 200 characters. For example, the default length is 200 for the magentmp.sas macro. If the length exceeds 200, the macro is truncated.

If you view the stored-process log, you see that truncation, as shown in this example:

2020-08-31T21:11:20,075 INFO  [sasdemo] 236:b1634380 - MPRINT(MACRTLIB): LIBNAME CDM SASIORST DATABASE=sasmadb SERVER="very-long-qualified-host-name" SCHEMA=cdm USER=sasdemo

2020-08-31T21:11:20,075 INFO  [sasdemo] 236:b1634380 - PASSWORD="{SAS002}1234567890123456789012345678901234567890" CONNECTION=TEST27;

Later in the log, you can see that the closing quotation mark of the password is removed, as shown below. This behavior causes warnings, errors, or both later in the processing:

2020-08-31T21:11:20,076 INFO  [sasdemo] 236:b1634380 - MPRINT(MAGENTMP): MATCHID=prxparse('s/ACCESS.?=.?READONLY//i');

2020-08-31T21:11:20,076 INFO  [sasdemo] 236:b1634380 - MPRINT(MAGENTMP): libsource="libname dbtmplib SASIORST  DATABASE=sasmadb SERVER="very-long-fully-qualified-host-name.ap-northeast-1.redshift.amazonaws.com" USER=sasdemo  

2020-08-31T21:11:20,076 INFO  [sasdemo] 236:b1634380 - PASSWORD="{SAS002}123456789012345678901234567890123456789 cdbmstemp=yes connection=TEST27";

2020-08-31T21:11:20,076 INFO  [sasdemo] 236:b1634380 - MPRINT(MAGENTMP):   call prxchange(MATCHID,-1,libsource);

2020-08-31T21:11:20,076 INFO  [sasdemo] 236:b1634380 - MPRINT(MAGENTMP):   call symput('dbtmplib',trim(left(libsource)));

2020-08-31T21:11:20,076 INFO  [sasdemo] 236:b1634380 - MPRINT(MAGENTMP):   run;

To work around this problem, use a shorter password or use a shorter fully qualified host name.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Customer Intelligence StudioMicrosoft® Windows® for x646.66.69.4 TS1M6
Microsoft Windows 8 Enterprise 32-bit6.66.69.4 TS1M6
Microsoft Windows 8 Enterprise x646.66.69.4 TS1M6
Microsoft Windows 8 Pro 32-bit6.66.69.4 TS1M6
Microsoft Windows 8 Pro x646.66.69.4 TS1M6
Microsoft Windows 8.1 Enterprise 32-bit6.66.69.4 TS1M6
Microsoft Windows 8.1 Enterprise x646.66.69.4 TS1M6
Microsoft Windows 8.1 Pro 32-bit6.66.69.4 TS1M6
Microsoft Windows 8.1 Pro x646.66.69.4 TS1M6
Microsoft Windows 106.66.69.4 TS1M6
Microsoft Windows 95/986.6
Microsoft Windows 2000 Advanced Server6.6
Microsoft Windows 2000 Datacenter Server6.6
Microsoft Windows 2000 Server6.6
Microsoft Windows 2000 Professional6.6
Microsoft Windows NT Workstation6.6
Microsoft Windows Server 2003 Datacenter Edition6.6
Microsoft Windows Server 2003 Enterprise Edition6.6
Microsoft Windows Server 2003 Standard Edition6.6
Microsoft Windows Server 2003 for x646.6
Microsoft Windows Server 20086.66.69.4 TS1M6
Microsoft Windows Server 2008 R26.66.69.4 TS1M6
Microsoft Windows Server 2008 for x646.66.69.4 TS1M6
Microsoft Windows Server 2012 Datacenter6.66.69.4 TS1M6
Microsoft Windows Server 2012 R2 Datacenter6.66.69.4 TS1M6
Microsoft Windows Server 2012 R2 Std6.66.69.4 TS1M6
Microsoft Windows Server 2012 Std6.66.69.4 TS1M6
Microsoft Windows Server 20166.66.69.4 TS1M6
Microsoft Windows Server 20196.66.69.4 TS1M6
Microsoft Windows XP Professional6.6
Windows 7 Enterprise 32 bit6.66.69.4 TS1M6
Windows 7 Enterprise x646.66.69.4 TS1M6
Windows 7 Home Premium 32 bit6.66.69.4 TS1M6
Windows 7 Home Premium x646.66.69.4 TS1M6
Windows 7 Professional 32 bit6.66.69.4 TS1M6
Windows 7 Professional x646.66.69.4 TS1M6
Windows 7 Ultimate 32 bit6.66.69.4 TS1M6
Windows 7 Ultimate x646.66.69.4 TS1M6
Windows Millennium Edition (Me)6.6
Windows Vista6.6
Windows Vista for x646.6
64-bit Enabled AIX6.66.69.4 TS1M6
64-bit Enabled Solaris6.66.69.4 TS1M6
HP-UX IPF6.66.69.4 TS1M6
Linux for x646.66.69.4 TS1M6
Solaris for x646.66.69.4 TS1M6
* 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.