You use these statements to assign access authorization for individual records or groups of records in a table.
The records of a table are identified by primary-key values or primary-key-group values.
After a 1P1 statement you can specify either 1P3 statements or 1P3N statements, but not both. You can also use a 1P3/1P3N statement to assign authorization for the primary-key values of records the table does not yet contain but that are to be added subsequently.
The 1P3 statement allows you to assign authorization for an individual record or a group of records in a table.
1P3
'BLANK''BLANK'b
'BLANK'{ primary-key-value | Gprimary-key-group-value}[x]
The 1P3N statement assigns the access authorization b for all the records in a table except for those specified in the statement.
1P3N
'BLANK'[b]{
'BLANK'primary-key-value | Gprimary-key-group-value }[x]
b | Type of authorization: The type of authorization must always be specified for the 1P3 statement. |
primary-key-value
Specify a primary-key value (up to 64 characters). You can specify it in printable form or hexadecimal notation. | |
G | The operand G applies access authorization to a primary-key group. |
primary-key-group-value
Specify a primary-key-group value (up to 64 characters). It can be entered in printable form or hexadecimal notation. If it is longer than 64 characters, a followup statement is required. In this case, it must be specified in printable form. | |||||||||||||
x | Flag indicating there is a follow-up statement: Structure of a 1P3 follow-up statement, for example: 1P3'BLANK''BLANK''BLANK''BLANK'psw[x] Each 1P3/1P3N follow-up statement can contain up to 64 characters. If the primarykey value is longer, you again enter the character “x” as the 65th character to indicate that there is a further follow-up statement. Example A primary-key value has 200 characters. The character @ is used to indicate there is a 1P3 follow-up statement:
|