SECURITY (Security) Keyword for Intersystem Communications Function Files --Example

Figure 424 shows how to specify the SECURITY keyword.

Figure 424. Specifying the SECURITY Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A  01                                  SECURITY(2 'JONES' 3 'WHITE')
00020A
00030A
00040A
00050A
00060A          R RCD1
00070A  03                                  SECURITY(2 'JONES' 3 *USER)
00080A                                      EVOKE(LIB2/PGM2)
00090A
00100A          R RCD2
00110A                                      EVOKE(LIB3/PGM3)
00120A
00130A            FIELD1         5A
00140A
00150A          R RCD3
00160A  60                                  SECURITY(2 &CLVAR1 3 &CLVAR2);
00170A                                      EVOKE(LIB4/PGM4)
00180A            CLVAR1        10A
00190A            CLVAR2        10A
     A

SECURITY specified at the file-level applies to all formats and if selected (indicator 01 is on), the password of JONES and user ID of WHITE are sent to the remote system.

For RCD1, if indicator 03 is set on, the user profile name of the current user is used as the user ID and is sent with the password JONES as security information to the remote system.

For RCD2, no security information is sent to the remote system.

For RCD3, if indicator 60 is set on, the value contained in CLVAR1 is used as the password, the value in CLVAR2 is used as the user ID, and both are sent as security information to the remote system.