× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




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.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.