there is nothing inherent to STRPCCMD that has anything to do with
authority. STRPCCMD just instructs your PC to do something. You could
achieve your goal in a couple of different ways.
1. Set the authority on the IFS file correctly before using STRPCCMD. Set
the authorities either during creation or by using CHGAUT in your CL.
2. Instead of using a mapped drive, have STRPCCMD pull up an internet
browser and serve the spreadsheet via the browser. That way the user has
no way of saving back to the server.
<SHAMELESSPLUG>
If you would like to see how to accomplish option 2 using PHP, I
will be giving a web session on the topic at the RPG and Beyond Virtual
Conference
http://rpgandbeyond.systeminetwork.com/ next week.
</SHAMELESSPLUG>
Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi
"Computer Century" <computercenturyinc@xxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
09/13/2010 09:12 AM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To
<midrange-l@xxxxxxxxxxxx>
cc
Subject
Object Authority using STRPCCMD
Hi.
I need to control Object authority when I open documents using STRPCCMD
command
for example I need to open an excel Document with read only authority.
How can I control authority on a fly? is it possible?
here is my code:
STRPCCMD
PCCMD('\\10.1.1.1\Root\pdfitem\200\NJ000689\XLSFA001.XLS') PAUSE(*NO)
Thank you in advance.
Gary
As an Amazon Associate we earn from qualifying purchases.