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



It seems the "cat" command should not work, so it might be worth a call to IBM support to see if this is correct. I tried this and get the message "The file access permissions do not allow the specified action." when I do this. And the DOS (PC) Read only value in WRKLNK is still "No". If your "cat" works, it is a bug - call IBM Support. The "Read only" attribute is a DOS attribute - from V5R1 and on you can change it with the CHGATR command.

BTW, I was doing this on V5R2.

At 07:07 AM 3/17/2006, you wrote:


Have a requirement to create a read only file in the IFS using java.

The file is created with the following permissions when viewed in pase:

-r--r--r--  1 WAO  0                   142 Mar 17 11:16 output.cont

I can execute "cat output.cont >> output.cont" whilst I would expect that to
fail in other unix environments.

Looking at the file attributes via WRKLNK I can see that the file is "Read
Only = No", and I can't see how I would change that to yes.

For reference, the java component is being tested on multi-platforms using a
standard test case. All tests are good on other platforms, but the iSeries
is failing this step to ensure that the files created are truly read-only.

Anyone got any tips?

Cheers,

Dave

"Dammit Smithers, this isn't rocket science, it's brain surgery."


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at 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.