title: How to set (unix) permissions when creating a file in SAP ABAP?
body: <p>you would think this would be obvious, but searching through documentation, SAP forums, Googling, etc., I've been spectacularly unsuccessful.  I'm creating a file in ABAP on a solaris filesystem using the following code:</p>
  
  <pre><code>OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
  </code></pre>
  
  <p>the resulting file is owned and grouped according to a pre-defined admin user, which is fine, but the sticky wicket is that the permissions are set to 660/rw-rw----, meaning I can't examine the results.  is there a way (possibly using that vaguely defined TYPE addition?) I can specify the resulting permissions on the new file?</p>
  
  <p>thanks!</p>