Accelerator Manual (G06.27+, H06.04+, J06.03+)

Preparing Your Program for TNS/R Systems
Accelerator Manual527303-003
2-7
Nonprivileged References to System Global Data
Detection Guidelines
Look for statements that pass a 32-bit extended address of a P-relative object to
other routines.
Run your program on a TNS system. If the program runs correctly, your code is
correct.
Required Change
Recode statements that pass a 32-bit extended address of a P-relative object to
other routines.
Nonprivileged References to System Global Data
Only privileged programs can access system global data. When a nonprivileged
program references system global data, results differ depending on the system:
On TNS systems, the program accesses the user global data segment, G, instead.
On TNS/R systems, the program fails with an Instruction Failure exception.
Detection Guideline
Use a text editor to search for ‘SG’ in programs to locate potential variances.
TNS/R systems terminate nonprivileged references to SG with an Instruction
Failure exception.
Required Change
Remove references to SG variables from nonprivileged programs.