Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Control file permissions on file created from OPEN DATASET

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

former_member156446
Active Contributor
0 Kudos

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.

1 REPLY 1

former_member156446
Active Contributor
0 Kudos

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.