Problem Note 54549: A SAS® program that uses PROC PRINTTO with a FILENAME that uses the EMAIL engine fails with a system 0C4 in SAS® 9.4
A SAS® program that contains a PRINTTO procedure that writes to a FILENAME using the EMAIL engine fails with a system 0C4 abend in all maintenance levels of SAS 9.4. A sample program is shown below:
DATA GAS;
INPUT MILE MM DD YY PRICE GALS TOTAL BRAND & $12. CITY & $20.;
LABEL MILE='ODOMETER READING';
CARDS;
6950 8 27 78 68.9 9.2 6.35 HUDSON IND. STATE LINE
7116 8 27 78 58.9 5.4 3.2 MOBILE ST. LOUIS
7342 8 28 78 58.9 7.1 4.2 APCO KANSAS CY
7616 8 29 78 62.9 7.2 5 VICKERS HUTCHINSON KS
7761 9 1 78 62.9 6 3.8 VICKERS HUTCHINSON KS
7936 9 1 78 61.9 6.1 3.75 APCO PONCA CITY OK
8012 9 2 78 58.9 2.7 1.5 HUDSON STILLWATER OH
8251 9 2 78 61.9 7.1 4.92 CLARK SPRINGFIELD MO;
PROC PRINTTO PRINT=SASLIST;
FILENAME SASLIST EMAIL TO =("XXXXXX.XXXXXX@XXXXXX.COM")
FROM=("XXXXXX.XXXXXX@XXXXXX.COM")
SUBJECT="TEST";
run;
PROC PRINT DATA=GAS LABEL;
TITLE 'GASOLINE STATISTICS DATA';
run;
To circumvent this problem, add the following code to the end of your SAS program or in the TERMSTMT option:
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.4 TS1M1 | 9.4 TS1M3 |
*
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 |
Date Modified: | 2014-11-14 16:52:44 |
Date Created: | 2014-11-06 08:45:29 |