× 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.



Hi, Frank:

As Scott Klement mentioned, directly calling QSHELL programs in OS/400 is not a documented or supported interface.

The following would be the preferred way to do this in a CL program:

DCL VAR(&CMD) TYPE(*CHAR) LEN(255)
CHGVAR VAR(&CMD) VALUE('chmod 644 ' || &FILNAM)
STRQSH CMD(&CMD)
MONMSG MSGID(QSH0000) EXEC(DO)
/* handle any errors here ... */
ENDDO

This gives you exactly the same functionality, in an officially supported manner.

Hope that helps.

Mark S. Waterbury

> On 12/17/2010 2:34 PM, fbocch2595@xxxxxxx wrote:
Mark, is this syntax correct or are ' needed for&FILNAM?

CALL PGM(QSHELL/CHMOD) PARM('644'&FILNAM)



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.