The SAS Output Delivery System and reporting techniques

SAS Report destination for batch?

Accepted Solution Solved
Reply
Contributor
Posts: 60
Accepted Solution

SAS Report destination for batch?

Hi, I know that the default output style for EG is SAS Report and the code works fine. But when I run the same code in batch (Linux), it's failing with a message of :

ERROR: The width of InstanceName is not between 1 and 115. Adjust the column width or line size.

NOTE: This affects LISTING output.

 

Is the ODS destination of DOCUMENT the same as EGs' SAS Report?  If not, what do I use to mimic what EG is doing? I don't need the style to be LISTING.

TIA!

Michelle

Accepted Solutions
Solution
‎05-26-2016 03:25 PM
SAS Super FREQ
Posts: 8,720

Re: SAS Report destination for batch?

The DOCUMENT destination is NOT the same as SASReport in EG. SASReport is an XML output and the DOCUMENT destination is a binary item store that stores your output objects so they can be "replayed" to other ODS destinations.

You could try ODS LISTING CLOSE; before your code in Linux. Are you trying to create SASReport XML (.SRX) file in Linux in batch? Or are you creating another file type.

I believe that message usually appears when
1) the LISTING destination is open (as it would be in batch) and
2) the calculated value needed for the line size of the report in LISTING exceeds the value of the LINESIZE system option.

Here's a paper https://support.sas.com/resources/papers/sgf09/318-2009.pdf about using ODS DOCUMENT and PROC DOCUMENT to "replay" output -- as you can see on page 13/14 the PROC DOCUMENT "replay" has to be within an ODS "sandwich".

cynthia

View solution in original post


All Replies
Solution
‎05-26-2016 03:25 PM
SAS Super FREQ
Posts: 8,720

Re: SAS Report destination for batch?

The DOCUMENT destination is NOT the same as SASReport in EG. SASReport is an XML output and the DOCUMENT destination is a binary item store that stores your output objects so they can be "replayed" to other ODS destinations.

You could try ODS LISTING CLOSE; before your code in Linux. Are you trying to create SASReport XML (.SRX) file in Linux in batch? Or are you creating another file type.

I believe that message usually appears when
1) the LISTING destination is open (as it would be in batch) and
2) the calculated value needed for the line size of the report in LISTING exceeds the value of the LINESIZE system option.

Here's a paper https://support.sas.com/resources/papers/sgf09/318-2009.pdf about using ODS DOCUMENT and PROC DOCUMENT to "replay" output -- as you can see on page 13/14 the PROC DOCUMENT "replay" has to be within an ODS "sandwich".

cynthia
Contributor
Posts: 60

Re: SAS Report destination for batch?

Thanks Cynthia. I knew SASReport was XML, but knew nothing about DOCUMENT. 

Closing the LISTING and using ODS EXCEL did the trick.

Michelle
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 277 views
  • 0 likes
  • 2 in conversation