![]() | ![]() | ![]() |
Execution of a SAS Forecast Studio batch program might fail with the following warning:
The warning occurs when a generated SAS program source line is greater than the system limit.
Whenever you submit a SAS batch job, the SAS code input file has a line length that is limited by the operating system. For Windows this limit is 256 characters; for Unix, 384 characters.
To work around the problem write a second SAS code file. In this file, use a %INCLUDE statement that points to the original file. On the %INCLUDE statement, use the LRECL= option to specify a value that is at least as large as your generated SAS program source line. Then, submit the second SAS code file in batch, instead of submitting the first SAS code input file.
For example, suppose that you submit the following SAS program:
sas create_project_do_not_import_data.sas
This SAS log excerpt shows the truncated record warning. This truncation will cause errors indicating that certain variables are not found.
1613 ********************************************************************** 1614 * HPFDIAGNOSE STATEMENT FOR LEVEL: _LEAF 1615 *********************************************************************; 1616 proc hpfdiagnose data=_leaf.DATA basename=leaf_ 1617 inest=_leaf.est outest=_leaf.est_temp seasonality=12 errorcontrol=(severity=HIGH stage=(PROCEDURELEVEL)) 1618 EXCEPTIONS=CATCH modelrepository=_leaf.LevModRep inevent=_project.EventRepository 1619 back=&HPF_BACK criterion=&HPF_SELECT_CRITERION minobs=(trend=&HPF_SELECT_MINOBS_TREND); 1620 transform type=&HPF_TRANSTYPE transopt=&HPF_TRANSOPT; 1621 by SITE_ID ; 1622 forecast con_Basic ; 1623 id monthyr interval=MONTH acc=total notsorted setmissing=&HPF_SETMISSING start=&HPF_START trimmiss=&HPF_TRIMMISS 1623 ! zeromiss=&HPF_ZEROMISS; WARNING: Truncated record. 1624 input con_Data con_Digital con_Telephony dis_Data dis_Basic dis_Digital dis_Telephony begsubs_Data begsubs_Basic 1624 ! begsubs_Digital begsubs_Telephony ensubs_Data ensubs_Basic ensubs_Digital ensubs_Telephony netgain_Data netgain_Basic 1624 ! netgain_Digital netgain_T 1625 numWeekdays numSundays numMondays numTuesdays numWednesdays numThursdays numFridays numSaturdays firstDOW lastDOW ; ERROR: Variable NETGAIN_T not found. ERROR: Variable NETGAIN_T not found. ERROR: Variable NETGAIN_T not found. 1626 arimax identify=both outlier=(detect=yes filter=subset); 1627 esm method=best; 1628 idm intermittent=&HPF_DIAGNOSE_INTERMITTENT; 1629 run;
To work around the problem, include the original SAS program, create_project_do_not_import_data.sas, in a second SAS program called fsrun.sas (the name is arbitrary) containing the following lines:
OPTIONS SOURCE SOURCE2; %INCLUDE "create_project_do_not_import_data.sas" / LRECL=1024;
Submit the fsrun.sas program in batch.
| Product Family | Product | System | Product Release | SAS Release | ||
| Reported | Fixed* | Reported | Fixed* | |||
| SAS System | SAS Forecast Server Batch Interface | Linux | 2.1 | 9.1 TS1M3 SP4 | ||
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 2.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 2.1 | 9.1 TS1M3 SP4 | ||||
| HP-UX IPF | 2.1 | 9.1 TS1M3 SP4 | ||||
| 64-bit Enabled Solaris | 2.1 | 9.1 TS1M3 SP4 | ||||
| 64-bit Enabled HP-UX | 2.1 | 9.1 TS1M3 SP4 | ||||
| 64-bit Enabled AIX | 2.1 | 9.1 TS1M3 SP4 | ||||
| Windows Vista | 2.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows XP Professional | 2.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Standard Edition | 2.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Enterprise Edition | 2.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Datacenter Edition | 2.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows NT Workstation | 2.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Professional | 2.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Server | 2.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Datacenter Server | 2.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Advanced Server | 2.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows XP 64-bit Edition | 2.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 2.1 | 9.1 TS1M3 SP4 | ||||
| Type: | Usage Note |
| Priority: |
| Date Modified: | 2010-03-02 14:43:20 |
| Date Created: | 2009-12-11 15:28:34 |



