View Full Version: Watch Out For This Script Problem

LawsonTalk > System Admin > Watch Out For This Script Problem



Title: Watch Out For This Script Problem
Description: Warning! Unprintable stuff!


Milo - April 26, 2006 04:18 PM (GMT)
Today I had to get my script running. I'm taking jobs out of the old system, and plunking them down in the new. Easy, since I found a Lawson KnowledgeBase article about how to copy or move environments, # 115611. So I copy the instructions from the screen, and paste them into my batch file.

Please also note that I'm working in Windows, so I am editing with Notepad.

And then it doesn't work. What in the world is going on? My scripted instruction doesn't work:
rngdbdump –c GEN JOBSTEPRPT > JOBSTEPRPT.csv
It returns this error:
"Extra Parameter Not Understood."
But when I run it on the command line:
rngdbdump -c GEN JOBSTEPRPT > JOBSTEPRPT.csv
the result is:
"Dumping JOBSTEPRPT ... 10580 Records"
:banghead:

So after a bit of bumping around and looking for hidden stuff, I found it. :D The problem was the dash-C "-c" in the rngdbdump command. The dash is not a regular hyphen "-" but a long-dash "–" which often appears in Microsoft Word. In the font that my Notepad settings uses, Courier New, both dashes look identical. But -- they do not work the same!

Moral of this exercise: Watch out for dashes when copying stuff from the Lawson KnowledgeBase. You may not get what you think you're getting.




Hosted for free by InvisionFree