|
Hi, Frank:
You can invoke the "chmod" program directly from an OS/400 command line,
as follows:
CALL PGM(QSHELL/CHMOD) PARM('644' '/your/file/name')
You can call it from within a CL program, as follows:
DCL VAR(&AUTH) TYPE(*CHAR) LEN(4)
DCL VAR(&PATH) TYPE(*CHAR) LEN(255)
DCL VAR(&NULL) TYPE(*CHAR) LEN(1) VALUE(X'00')
...
CHGVAR VAR(&AUTH) VALUE('644' *CAT&NULL)
CHGVAR VAR(&PATH) VALUE(&PATH *TCAT&NULL)
CALL PGM(QSHELL/CHMOD) PARM(&AUTH&PATH)
...
Or, you could use the "native" OS/400 CHGAUT command. Type CHGAUT and
press F4=Prompt.
HTH,
Mark S. Waterbury
> On 12/17/2010 7:55 AM, fbocch2595@xxxxxxx wrote:
We use FTP Manager and it works well and their support is always excellent. They gave me the the chmod 644 cmd but translating that to OS400 seems best.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.