You are here: File Descriptions > Resource Manager > OSCODE - Roles

# OSCODE - Roles

The Roles file contains the menu selections for a role that are restricted, for each company. The menu program checks this file each time a menu item is selected. If the same program is run from different menu items, the program must have a nonspace character in its Parameter field to allow a unique access code for each menu selection.

If no role ID exist for a company, all menu selections are valid. If a role exists for a company, the menu selections that are restricted must be listed in the Roles file for the user's current role ID.

This file is no longer an optional file. It is needed for OSAS to function properly.

| Template: | DIM OSCODE:"CID:C(3*), ROLEID:C(12*), DESCR:C(30*), MENUTYPE:C(1*), MENUNAME:C(50*), MENUPARM:C(12*)"

Key Definitions

| Key Number | Field | Description
| 0 | [1:1:3] + | Company ID +
|  | [2:1:12] + | Role ID +
|  | [4:1:1] + | Menu Type +
|  | [5:1:50] + | Menu Name +
|  | [6:1:12] | Menu Paramenter
| 1 | [1:1:3] + | Company ID +
|  | [4:1:1] + | Menu Type +
|  | [5:1:50] + | Menu Name +
|  | [6:1:12] + | Menu Paramenter +
|  | [2:1:12] | Role ID
|  | __________ |
|  | 10 segments |

Roles

| File Name: | OSCODE | Record Size: | 114(128)
| File Type: | Mkeyed - Dynamic | Number of Keys: | 2

| Field | Field Name | Description | A/N | Length | Note
| 1 | CID | Company ID | A | 3 |
| 2 | ROLEID | Role ID | A | 12 |
| 3 | DESCR | Description | A | 30 |
| 4 | MENUTYPE | Menu Type | A | 1 |
| 5 | MENUNAME | Menu Name | A | 50 |
| 6 | MENUPARM | Menu Paramenter | A | 12 |