IBC Software
Putting It All Together:
Views and User Profiles.

             
Let's say that you want to expose a "DASD VOLUME" to three different users:  AAA, BBB and CCC. Further more, you want  each user to "see" only a specific "set of files" and perform "certain operations" against this set of files. To do this, your first create a "VTOC view" then create a profile for each user.
      



   Save the following statements  in the
startup sublibrary under the name of
  
TST000.FTPC.  We use the name  TST000 for illustration purposes only.
   You are free to choose any name. But, remember that the type is fixed and
    must always be
FTPC.     

    





   





   Save the following statements in the
startup sublibrary under the name of
  
AAA.PROF, BBB.PROF and CCC.PROF,  respectively.

                                                      
                                               

    






                    
                   
    

     
















Notice that all three users basically "share" the same "VIEW".  Yet, the properties (permitted operations) and the set of files each user sees are different.


Create User Profiles...
Create a DASD VTOC View...
XFER = BEGIN                        
      TYPE           = RCV              * CONSTANT.. Code as is.
      TGT_AM      = SAM             * FLAT FILES.
      TGT_TYPE  = INDEX          * VTOC VIEW.
      TGT_VOL    = TST000         * VOLSER.
   XFER = END
AAA's Profile  (AAA.PROF):

                    VIEW = BEGIN
                            CONFIG          = TST000
                             PROPERTIES  = DELETE=N,RENAME=N,CMNDS=ALL 
                             MASK             = AAA.?.PROJ%.*  
                    VIEW = END
BBB's profile (BBB.PROF):

                    VIEW = BEGIN
                            CONFIG         = TST000
                            PROPERTIES = DELETE=N,RENAME=N,CMNDS=GET
                           MASK            =  BBB.?.PROJ%.*
                     VIEW = END
CCC'S PROFILE (CCC.PROF):

                    VIEW = BEGIN
                          CONFIG         = TST000
                          PROPERTIES = DELETE=N,RENAME=N,CMNDS=LIST
                         MASK             = CCC.?.PROJ%.*
                    VIEW = END
Hosted by www.Geocities.ws

1