256 character command limit

256 character command limit

Post by H S » Mon, 22 Feb 2010 11:28:58


Hi,

How to make SAS run a command that is more than 256 characters in a
SINGLE line?
Complex SQL commands could easily exceed 256 characters.
 
 
 

256 character command limit

Post by Patric » Mon, 22 Feb 2010 12:30:06

The SAS system options S and S2 might help. Else: You can always add a
line break to the code.

I believe to remember some SAS Notes in regards of DI Studio
generating >256 line lenght code proposing to add a line break to the
code.

HTH
Patrick

 
 
 

256 character command limit

Post by art29 » Mon, 22 Feb 2010 12:57:46

I don't know why one would want to let a line get that big. The
maximum isn't with respect to the command, just the number of
characters until a return key has been pressed.

Regardless, the lengths are even greater than you indicated. You can
see them at:

http://www.yqcomputer.com/

HTH,
Art
-----------------
 
 
 

256 character command limit

Post by Patric » Mon, 22 Feb 2010 21:52:37

Art
Using Wizards some of the Expression Builders can generate lines
greater than 256 characters. This was at least the case for SAS 9.1.
Cheers
Patrick
 
 
 

256 character command limit

Post by Tom Aberna » Tue, 23 Feb 2010 00:34:26


I am not sure where these lines of code are coming from, but why not
just run them through a filter and instead line breaks between words?
SAS really doesn't care if a statement is on one line or 200 lines.
 
 
 

256 character command limit

Post by mkeint » Thu, 25 Feb 2010 00:13:24

Art:

Here is a reason I think supporting longer sas program line lengths
could be beneficial.

Longer line lengths could allow you to have strict correspondence
between statement numbers and line numbers in the SAS program
file. It would simplify various OS command-level filters (e.g.
the "head" and "tail" commands frequently used in the unix
environment).

This would make it easier to build a shell script to restart a
multi-step sas program at a specified statement number (which
you would see on the sas log), since it would correspond to
line number. There would be no need to edit the sas program,
(which might be disallowed in a multi-user environment).

Regards,
Mark
 
 
 

256 character command limit

Post by art29 » Thu, 25 Feb 2010 00:25:15

Mark,

To each their own! However, I would hope that the current acceptable
length of 32,767 (or even the 6,000 for include files) would be long
enough to meet such needs.

Art
-----Original Message-----
From: Keintz, H. Mark < XXXX@XXXXX.COM >
To: Arthur Tabachneck < XXXX@XXXXX.COM >; XXXX@XXXXX.COM
< XXXX@XXXXX.COM >
Sent: Tue, Feb 23, 2010 10:13 am
Subject: RE: 256 character command limit

Art:

Here is a reason I think supporting longer sas program line lengths
could be beneficial.

Longer line lengths could allow you to have strict correspondence
between statement numbers and line numbers in the SAS program
file. It would simplify various OS command-level filters (e.g.
the "head" and "tail" commands frequently used in the unix
environment).

This would make it easier to build a shell script to restart a
multi-step sas program at a specified statement number (which
you would see on the sas log), since it would correspond to
line number. There would be no need to edit the sas program,
(which might be disallowed in a multi-user environment).

Regards,
Mark