SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 46512: Batch report definitions in SAS® IT Resource Management 3.21 (and later) might fail with a warning and errors as a result of truncation

DetailsAboutRate It

Beginning with SAS® Enterprise Guide® 5.1 and SAS IT Resource Management 3.21 (and later), generating and running SAS code in batch might cause custom or supplied report definitions to fail with warning and error messages.

This problem occurs when any line of SAS code that is generated exceeds 256 characters. The following warning message appears in the SAS log:

  WARNING: Truncated record.

Depending on where the truncation occurs, other syntax and missing-file errors might appear that are similar to the following messages:

Error 1

  ERROR 22-7: Invalid option name OUT.
  ERROR 22-322: Missing ')' parenthesis for data set option list
  ERROR 79-322: Expecting a ).

Error 2

  ERROR: File WORK.SORTTEMPTABLESORTED.DATA does not exist.

Error 3

  ERROR: File WORK.DAYHOURLPAR_DH0046_Q1.DATA does not exist. 

To circumvent this problem, set the SAS system option LRECL= value to 2048, per SAS Note 15883: "Length limitations when submitting SAS code."

In the z/OS operating environment, if you deploy a report job to a traditional MVS data set or PDS, you must specify a data control block (DCB) characteristic LRECL of 2048 in the target data set. Otherwise, if you deploy a report job to a ZFS file system, you must specify the LRECL= system option in the JCL EXEC statement of your batch job. The following example illustrates a SAS invocation in batch mode, using a JCL EXEC statement and the setting of the LRECL= system option:

     //STEP1 EXEC SAS,OPTIONS=’LRECL=2048’


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS IT Resource Management-Serverz/OS3.213.49.3 TS1M19.4 TS1M1
Microsoft® Windows® for x643.213.49.3 TS1M19.4 TS1M1
Microsoft Windows Server 2003 Datacenter Edition3.219.3 TS1M1
Microsoft Windows Server 2003 Enterprise Edition3.219.3 TS1M1
Microsoft Windows Server 2003 Standard Edition3.219.3 TS1M1
Microsoft Windows Server 2003 for x643.219.3 TS1M1
Microsoft Windows Server 20083.219.3 TS1M1
Microsoft Windows Server 2008 for x643.213.49.3 TS1M19.4 TS1M1
Microsoft Windows XP Professional3.219.3 TS1M1
Windows 7 Enterprise 32 bit3.219.3 TS1M1
Windows 7 Enterprise x643.213.49.3 TS1M19.4 TS1M1
Windows 7 Home Premium 32 bit3.219.3 TS1M1
Windows 7 Home Premium x643.219.3 TS1M1
Windows 7 Professional 32 bit3.219.3 TS1M1
Windows 7 Professional x643.213.49.3 TS1M19.4 TS1M1
Windows 7 Ultimate 32 bit3.219.3 TS1M1
Windows 7 Ultimate x643.219.3 TS1M1
Windows Vista3.219.3 TS1M1
Windows Vista for x643.219.3 TS1M1
64-bit Enabled AIX3.213.49.3 TS1M19.4 TS1M1
64-bit Enabled HP-UX3.213.49.3 TS1M19.4 TS1M1
64-bit Enabled Solaris3.213.49.3 TS1M19.4 TS1M1
HP-UX IPF3.213.49.3 TS1M19.4 TS1M1
Linux3.213.49.3 TS1M19.4 TS1M1
Linux for x643.213.49.3 TS1M19.4 TS1M1
Solaris for x643.213.49.3 TS1M19.4 TS1M1
* 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.