Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parameter list is too long error

Status
Not open for further replies.

confuseddddd

Programmer
May 22, 2003
53
US
Trying to run a nwk script and am receiving /scripts/EOS_INT.nwk[17]: /usr/bin/nawk: 0403-027 The parameter list is too long.

Any ideas on how to allow the nawk script to be greater than 900 lines???
 
The error message suggests there is a problem with line 17.

The error message also suggests that you're calling a function with lots of parameters (too many)
Code:
myfunc(my,this,is,a,lot,of,parameters)

Can you post some of the program around where it thinks the error is?

Is running GNU AWK an option? It has some more features, and fewer limitations compared to NAWK.


--
 
Here is the code to about line 20 and no, GNU AWK , is not an option....

##
## READS THE INTERFACE FILE RECEIVED CREATES
## SEPARATE USER-ID SPECIFIC FILES FOR INTERFACE PROCESSING
##

##### WHEN ADD NEW USER: ######
## 1) ADD USER COUNT VARIABLE
## 2) ADD USER ID CHECK TO NOT VALID USER PROCESSING
## 3) ADD USER ID IF STATEMENTS TO ADD TO USER COUNT
## 4) ADD PRINT STATEMENT FOR USER COUNT VARIABLE

## FILE DECLARES
INFILE="EOS_INTERFACE.I01"
OUTFILE=""

## BEGIN SCRIPT PROCESSING
## VARIABLE DECLARES
nawk 'BEGIN{
FS=" ";
PRE='`date -u +%Y%m%d`'

BPPOCNT=0
BTOTCNT=0
VMLCNT=0
 
[17]: /usr/bin/nawk: 0403-027 The parameter list is too long.
Seems like a shell error, saying that the parameter list of the launched nawk program is too long.
I suggest to save the inline awk program in a file, say EOS_INT.awk, and to use the -f option of nawk in the shell script.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
nope, the problem is with quoting.
Chenge to:

nawk 'BEGIN{
FS=" ";
PRE="`date -u +%Y%m%d`"


BTW, how's PRE is being used later in the the script?

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
used the double quote suggestion for the PRE variable and still receiving the same message.
Any other ideas???
 
Can you post your whole nawk invocation ?

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top