Thanks, Mark, for the quick response!

I'm fairly sure. Binary value 438 (if we ignore the leftmost two bytes, which I believe are not used anyway) equates to hex 01B6, or binary 0001 1011 0110. . . Expressed as octal values 0 6 6 6. That's what I want.

"M. Lazarus" <mlazarus@xxxxxxxx> wrote:


Are you sure about the value in:

DCL DD permission BIN(4) INIT(438) /* rw-rw-rw- */ ;

Should it be the ASCII or EBCDIC equivalent?


At 3/16/2011 03:58 PM, you wrote:
Folks, I have posted MI code at that:
- Deletes file mi-ifs-file.txt from the current directory
- Creates a new file by same name in the current directory
- Writes a line if all successful
- Closes that file

It creates the file just fine, except that there are no permissions
(flags ----------). I am absolutely convinced that this is my error
(I used the same concept in RPG and it worked great), but my eyes
don't see where I might have gone wrong. Would some kind soul mind
steering me in the right direction?

The all-upper-case labels/names are for convenience of
debugging. If there is a way to make the debugger work with
mixed-case names, I'd really like to know about it.

This is an extract of a much larger source, dummied up to make it
useable for this topic.


This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: MI400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

Sent from my Galaxy tablet phone with with K-9 Mail. Please excuse my brevity.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 by 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.