01-30-2008 5:37 PM
Hi,
I am creating a new file on the application server using OPEN DATASET. Is there a way to override the file permissions defaulted by OS through ABAP .
Thanks.
01-31-2008 4:02 AM
Hi Arpitha
I doubt if we have any such facility from ABAP side.. you can speak to basis or the Unix person in ur organization.
OPEN DATASET dsn.
Additions
1. ... FOR OUTPUT
2. ... FOR INPUT
3. ... FOR APPENDING
4. ... IN BINARY MODE
5. ... IN TEXT MODE
6. ... AT POSITION pos
7. ... TYPE attr
8. ... MESSAGE msg
9. ... FILTER filter
->>
... FILTER filter
Effect
Under UNIX and Windows NT, you can specify an operating system command in the field filter .
Example
Under UNIX
DATA DSN(20) VALUE '/usr/test.Z'.
OPEN DATASET DSN FOR OUTPUT FILTER 'compress'.
opens the file DSN and writes the output data to this file via the UNIX command 'compress'.
OPEN DATASET DSN FOR INPUT FILTER 'uncompress'.
reads the file in again.
01-31-2008 4:02 AM
Hi Arpitha
I doubt if we have any such facility from ABAP side.. you can speak to basis or the Unix person in ur organization.
OPEN DATASET dsn.
Additions
1. ... FOR OUTPUT
2. ... FOR INPUT
3. ... FOR APPENDING
4. ... IN BINARY MODE
5. ... IN TEXT MODE
6. ... AT POSITION pos
7. ... TYPE attr
8. ... MESSAGE msg
9. ... FILTER filter
->>
... FILTER filter
Effect
Under UNIX and Windows NT, you can specify an operating system command in the field filter .
Example
Under UNIX
DATA DSN(20) VALUE '/usr/test.Z'.
OPEN DATASET DSN FOR OUTPUT FILTER 'compress'.
opens the file DSN and writes the output data to this file via the UNIX command 'compress'.
OPEN DATASET DSN FOR INPUT FILTER 'uncompress'.
reads the file in again.