WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Error Codes

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Error 111: Line too long > 256 Characters

Keywords:  111 Line too Long  256 chars

Question:

I have been trying to use AskItemList with following list. But it gives
	Error 111: Line too long > 256 characters
The line is as follows:
list=strcat("IE_BUSINESS_DATA",@tab,"IE_BUSINESS_DATA_ALL",@tab,"IE_PROGRAM_DATA",@tab,"IE_PROGRAM_DATA_ALL",@tab,"PROC_STATUS_DATA",@tab,"PROC_STATUS_DATA_ALL",@tab,"SCRIPT_DATA",@TAB,"IE_SCRIPT_DATA_ALL",@TAB,"IE_STATUS_DATA",@TAB,"IE_STATUS_DATA_ALL")
I need to pass long parameters to some 'exe's, and hence have to resolve to %var% passing rather than absolute values. THere too, I may get same errors.

I tried this on NT4.0. It fails. @TAB represents how many characters ? Any workaround/solution for this ?

Answer:

In older versions of WinBatch: A single line in WinBatch cannot exceed 256 characters. This error is returned if the line exceeds that many characters.

Also the use of substitution ('%variable%') can cause this error. Don't use substitution if there is any possiblity of it pushing the line over the 256 character limit.

One solution is to split it up into two strcat statements, e.g.:

list=strcat("IE_BUSINESS_DATA",@tab,"IE_BUSINESS_DATA_ALL",@tab,"IE_PROGRAM_DATA",@tab,"IE_PROGRAM_DATA_ALL",@tab,"PROC_STATUS_DATA",@tab,"PROC_STATUS_DATA_ALL",@tab)

list=strcat(list,"SCRIPT_DATA",@TAB,"IE_SCRIPT_DATA_ALL",@TAB,"IE_STATUS_DATA",@TAB,"IE_STATUS_DATA_ALL")

Question:

I have a very simple script that simply runs a program, does a file itemize and then a Display message. I am getting an execution error 111: Line Too Long on the display line. I know that this line is not too long.

Example:

	Display(3,"Please wait","The program is loading")

Answer:

If you are using a Unix type text editor that utilizes a different "end-of-line" terminator (like only a line feed), you might get this error message. WinBatch requires a (CRLF) carriage return line feed terminator.
CRLF
A carriage return (CR, ASCII 13) followed by a line feed (LF, ASCII 10). Under Unix influence this usage has become less common because Unix uses just line feed as its line terminator.


Article ID:   W12972
Filename:   Execution Error 111  Line too Long - Greater than 256 Char.txt
File Created: 2009:01:30:09:30:40
Last Updated: 2009:01:30:09:30:40