Scripting in Infor10...

 8 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
Greg Moeller
Veteran Member Send Private Message
Posts: 1498
Veteran Member

Trying to create a custom program in our Infor10 Windows environment.

This worked well in calling Unix shell scripts in our 9.0.1 environment...

I can get the token to work through LID, but I cannot get it to show up in Ming.le unless I change it to a pgmdef program (like it used to be in Unix)... but I can't figure out what to put in to get it to call the shell script.

 

I've tried:  D:/lsfprod/law/prod/script/apcredit.cmd   (this works through tokendef and LID -- even in v10)

I'll upload my PD if it would help.

Joe O'Toole
Veteran Member Send Private Message
Posts: 314
Veteran Member
Hey Greg, slightly off topic but did you have to create special security classes for end users to run scripts in LID that invoke S3 interface programs like importDB? I will need to set this up shortly in our V9 system as we move to the new security model in preparation for our V10 upgrade. Thanks.
Greg Moeller
Veteran Member Send Private Message
Posts: 1498
Veteran Member
You could set up different security classes. I can't remember which we did anymore. We've been on the new security model for a number of years already...
You could just add the scripts to whatever security class that they are in already too... although I'd probably set up a different one.
You'll find the scripts and tools like importdb under the ENV profile in either case.
Greg Moeller
Veteran Member Send Private Message
Posts: 1498
Veteran Member
In case it helps anyone give me a solution....
Attachments
JimY
Veteran Member Send Private Message
Posts: 510
Veteran Member
Have you tried a bat file? Were not allowed to download zip files.
JimY
Veteran Member Send Private Message
Posts: 510
Veteran Member
This is what I have in one of my programs. I define the command in working storage.
[code] 01 WS-COMMAND. 03 FILLER PIC X(30) VALUE "/lawprod/gen/bin/lobbydedsend". CALL "system" USING WS-COMMAND GIVING WS-RETURN-SYS-CODE . [/code]
Greg Moeller
Veteran Member Send Private Message
Posts: 1498
Veteran Member
Just changing the .cmd file to a .bat file seems to have worked correctly! Thanks everyone!
Wade
Basic Member Send Private Message
Posts: 10
Basic Member
Greg, do you know of any way to script checking whether a lawson security is turned on or off for a productline?
Greg Moeller
Veteran Member Send Private Message
Posts: 1498
Veteran Member
I suppose you could use the %GENDIR%\bin\lawsec.exe

But I can't test it right now, because I get a security violation when I'm logged in as lawson.