BookmarkSubscribeRSS Feed
SteveBittner
Fluorite | Level 6

When I export code from EG and then try to run batch using SASGSUB one line is truncated by SASGSUB and causes errors.

ODS HTML(ID=EGHTMLX) FILE=EGHTMLX ENCODING='utf-8' STYLE=HtmlBlue STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/5.1/Styles/HtmlBlue.css") ATTRIBUTES=("CODEBASE"="http://www2.sas.com/codebase/graph/v93/sasgraph.exe#version=9,3") NOGTITLE NOGFOOTNOTE GPATH=&sasworklocation;

Is there anyway to force Export to wrap this line or SASGSUB to read more characters per line?

1 REPLY 1
TomKari
Onyx | Level 15

I doubt that EG Export could wrap the line, because depending on what is on the line wrapping it could introduce errors.

Here's a snippet from Usage Note 15883, perhaps you could try passing the lrecl parm to SAS via the -GRIDSASOPTS parm?

Submitting a SAS program via a batch file imposes a maximum

length limit of 256 characters prior to SAS 9.2.  For SAS 9.2

and beyond you can use the new SAS system option of LRECL= to

specify a range of 1-32767 to use for reading and writing

external files.  The default for the LRECL= system option is

256.  This option is valid in the configuration file, at SAS

invocation, the OPTIONS statement, or the SAS Systems Option

window.  Under z/OS, the LRECL= system option is recognized only

for reading and writing HFS files.

Tom

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 826 views
  • 0 likes
  • 2 in conversation