# ksh script erroring with  "more tokens expected"

**URL:** <https://forums.suse.com/t/ksh-script-erroring-with-more-tokens-expected/23492>\
**Category:** SLES Configure-Administer\
**Created:** [January 10, 2013, 8:11pm UTC](https://forums.suse.com/t/ksh-script-erroring-with-more-tokens-expected/23492 "2013-01-10T20:11:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CICJIS](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@CICJIS](https://forums.suse.com/u/CICJIS)\
**Post date:** [January 10, 2013, 8:11pm UTC](https://forums.suse.com/t/ksh-script-erroring-with-more-tokens-expected/23492/1 "2013-01-10T20:11:41Z")

</div>

[B]I have a ksh script that works fine on SLES 9.3, 10.3 but is hanging when I attempt to run it on 11.3.  
When I kill the process from another session I am seeing the following in the session that was running the script which seems to be pointing me to the function call to the function AddResolution where it is saying “more tokens expected”

Here’s what I am seeing in the putty session after I kill the process running the script:[/B]  
/usr/cicjis/tools/shTranIdDoit[3624]: GetResolution[2220]: AddResolution[2249]: let: ErrorNoteOid=: more tokens expected

Any ideas would be greatly appreciated. I’ve been beating my head on this one all morning and half the afternoon yesterday.

Here is the fragment of the script that I believe is giving me the problem:😕  
function AddResolution  
{ …  
…  
let ErrorNoteOid=$(AddErrorNote $TranId $MaxLineNo “$fLine”) \<— This appears to be where it is   
…  
…  
}

function AddErrorNote  
{  
print “Inside AddErrorNote”  
…  
…  
)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [January 17, 2013, 3:30pm UTC](https://forums.suse.com/t/ksh-script-erroring-with-more-tokens-expected/23492/2 "2013-01-17T15:30:20Z")

</div>

CICJIS,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting, please ignore and accept our apologies  
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)
