TomLiotta
7610 pts. | Nov 7 2009 1:12AM GMT
Macros can be either System i macros or VBScript macros.
VBScript macros can be blocked by having these lines in the .WS file:
The
The lines can be added by any text editor. I’ve never tried, but I assume that .WS files can be distributed. so that standardized settings are available.
However, the same setting will not affect System i Access macro-language macros. So far, I haven’t run across anything that blocks that capability. Only thing I’ve seen that is related is simply deleting the .MAC files from ./Emulator/Private (where ‘./’ is the System i Access directory on the PC.)
I suppose you could execute STRPCCMD in initial programs to cause .MAC files to be deleted at every logon…?
Tom
TomLiotta
7610 pts. | Nov 7 2009 1:14AM GMT
Ah, sheesh… What’s happened to the editor now? The lines should be (if they work):
We’ll see when I click <Add>…
Tom
TomLiotta
7610 pts. | Nov 7 2009 1:19AM GMT
Okay, it’s not letting “CODE” lines come across for this.
The first line is the letters “API” in square brackets. The brackets are probably messing up the editor. The second line is “PcCodePage=1252″. And the final line is “DDE/HLL=Y”.
Three lines total — the last line turns the API feature on or off.
You can Edit-> Preferences-> API… in a workstation session to add the lines to the .WS session. Then, File-> Save to cause the new setting to be saved. Once saved, open the .WS file with Notepad to see what was added.
Tom
JohnsonMumbai
380 pts. | Nov 9 2009 8:54AM GMT
Thanks Tom it worked.
This would have to be done on each pc. However would there be any way by which we can control it centrally on iseries.
Also any way by which we can allow only certain macros to run while not allow other macros.






