SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
code error?

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
code error?
Author Message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post code error? Reply with quote
Hi, the script editor says the following code has a syntax error, but I can't see it?


dim newnames, string

Concatex( "\"", "CHQonusInwards.txt", "\"\,", &
"\"", "DESonusInwards.txt", "\"\,", &
"\"", "ISLout.txt", "\"\,", &
"\"", ""PLK", @T"ddmm", ".01", "\"", newnames)


Cheers
Wed Dec 19, 2007 6:58 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Reply with quote
It doesn't seem to like a lot of special symbols mixed with line continuation. Once I straitened it into a single line, the syntax error stopped.

By the way, you may want to "simplify" this code, the concatenation is not really required, it can be all done in the dim statement (as a single line)

Code:
dim orignames, string, "\"CHQonus@T"yyyyddmm".001\"\,\"DESonus@T"yyyyddmm".001\"\,\"ISLout.transactions.ascii@T"yyyyddmm".001\"\,\"plk@T"yyyyddmm".001\""

Wed Dec 19, 2007 7:23 pm View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
Sorry I edited that post after I put it in as I pasted the wrong statement.

This is the real one.

dim newnames, string

Concatex( "\"", "CHQonusInwards.txt", "\"\,", &
"\"", "DESonusInwards.txt", "\"\,", &
"\"", "ISLout.txt", "\"\,", &
"\"", ""PLK", @T"ddmm", ".01", "\"", newnames)
Wed Dec 19, 2007 8:52 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Reply with quote
It's the same issue here. If you remove line breaks, I mean & symbols and move the complete ConcatEx statement to a single line, the syntax errors will disappear. It seems like the JAL parser doesn't like mix of special symbols like \" and statement continuation using & symbols.
Wed Dec 19, 2007 9:55 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.