Mark, is this syntax correct or are ' needed for &FILNAM?
CALL PGM(QSHELL/CHMOD) PARM('644' &FILNAM)
-----Original Message-----
From: Mark S. Waterbury <mark.s.waterbury@xxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Fri, Dec 17, 2010 9:47 am
Subject: Re: OS400/Unix authority settings
Hi, Frank:
You can invoke the "chmod" program directly from an OS/400 command line,
s 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
ress 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.
hey gave me the the chmod 644 cmd but translating that to OS400 seems best.
-
his is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
o post a message email: MIDRANGE-L@xxxxxxxxxxxx
o subscribe, unsubscribe, or change list options,
isit:
http://lists.midrange.com/mailman/listinfo/midrange-l
r email: MIDRANGE-L-request@xxxxxxxxxxxx
efore posting, please take a moment to review the archives
t
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.