[Migrated content. Thread originally posted on 23 September 2011]
Hello all
i am using server express 5.1.4.0 on HP-UX 11.31.
a cobol program contain this declaration:
file-control.
select fdate assign to disk
organization indexed access mode dynamic
record key is fdate-key
lock mode automatic with lock on record
file status is fs2.
procedure division.
open output fdate.
two users user1 and user2 in the same group users.
when user1 launch the program FDATE is owned by user1
$ ll FDATE*
-rw-r--r-- 1 user1 users 0 Sep 23 17:26 FDATE
-rw-r--r-- 1 user1 users 3072 Sep 23 17:26 FDATE.idx
when user2 launch the program it still owned by user1
$ ll FDATE*
-rw-r--r-- 1 user1 users 0 Sep 23 17:26 FDATE
-rw-r--r-- 1 user1 users 3072 Sep 23 17:26 FDATE.idx
the file is not removed and will have always the owner user1 why?
some one know an option to make the launcher of the program the owner of the file.
thank for your help.

