Easytrieve SYSUSERID — User ID System Variable

Audit regulations ask who ran this job and who viewed this screen. SYSUSERID is Easytrieve's built-in answer in many online and batch contexts—a sixteen-byte alphanumeric system field you reference without DEFINE. Broadcom documents it prominently in screen processing because CICS programs copy SYSUSERID from the Execute Interface Block when a terminal user drives a SCREEN activity. Batch payroll and general ledger teams stamp SYSUSERID on report headers next to SYSDATE so printed output ties to a person or service account. Migration to 11.6 function mode added SYSUSERID to the reserved-word list: legacy programs that used SYSUSERID as an ordinary field name fail compile until renamed. This page explains field size, CICS versus batch behavior, TITLE and audit patterns, pairing with captured job name, security nuances with RACF and surrogate submitters, DISPLAY diagnostics, and rename strategies for colliding legacy identifiers.

Progress0 of 0 lessons

Field Definition and Size

SYSUSERID occupies sixteen bytes of alphanumeric storage in system-defined working storage. That width accommodates eight-character classic userids with room for longer identities or padding on some systems. When copying into report headers, use a working field of at least sixteen bytes or trim trailing spaces with documented string functions if columns are narrow. Do not truncate to eight bytes without verifying downstream audit tools still match RACF logs.

SYSUSERID quick reference
AspectDetail
Length16 bytes alphanumeric
DEFINE requiredNo—system-defined name
11.6 statusReserved word—cannot be user field name
CICS sourceCopied from EIB per Screen Processing docs
Typical useAudit headers, screen personalization, logs

CICS and SCREEN Activities

Online inquiry programs display welcome messages with SYSUSERID—Hello SMITH—and log actions per terminal operator. SCREEN statement field lists may show SYSUSERID as output-only on admin panels. Security reviews verify users see only their authorized data; SYSUSERID helps branch logic when test terminals need different behavior from production users—guarded by proper RACF profiles, not hard-coded userid lists in source when avoidable.

text
1
2
3
4
5
6
7
8
9
10
11
12
13
SCREEN INQUIRY KEY F3 NAME 'Exit' EXIT BEFORE-SCREEN. PROC MSG-LINE = 'USER:' MOVE SYSUSERID TO SCR-USER-ID END-PROC AFTER-SCREEN. PROC IF KEY-PRESSED EQ F3 EXIT END-IF END-PROC

Batch Execution Context

Batch SYSUSERID reflects the identity Easytrieve associates with the execution environment— often the TSO userid that submitted the job or a started task identity depending on how JCL was invoked. Scheduler surrogate accounts may show a service id rather than a human name. Document your shop standard: auditors may require both submitter from JES and SYSUSERID from Easytrieve when they differ. When identity must come strictly from JCL, complement SYSUSERID with &SYSUID passed on PARM similar to job name patterns.

Audit Report Headers

Combine SYSUSERID with SYSDATE, SYSTIME, and a captured job name field for SOX-style banners. Place on TITLE 02 or FOOTING so every page carries identity without repeating logic on each LINE. For extract files, MOVE SYSUSERID to OUT-USER-ID on header records written once in START procedure.

text
1
2
3
4
5
6
REPORT AUDIT-RPT TITLE 01 'GENERAL LEDGER EXTRACT' TITLE 02 'RUN BY:' COL 1 SYSUSERID COL 20 SYSDATE COL 35 SYSTIME JOB INPUT GLFILE LINE ACCT-NO AMOUNT

Migration: Reserved Word Collision

Pre-11.6 programs sometimes defined a field literally named SYSUSERID storing business data—a dangerous name even before reservation. New Reserved Words documentation lists SYSUSERID among terms that break compile in function mode. Rename to WS-USER-ID or AUDIT-USER-ID and recompile all impacted members. Global search source libraries before mass migration weekend.

SYSUSERID Versus TERM-NAME

Screen processing also documents TERM-NAME for terminal identification. User id answers who; terminal id answers which device. Security forensics may need both on violation logs. Do not substitute one for the other on audit designs requiring dual capture.

Privacy and Logging Considerations

DISPLAY SYSUSERID to SYSPRINT on every input record may expose personal identifiers in logs retained years—align with data privacy policy. Prefer header-level stamp. Mask or hash when exporting logs to unsecured ticket systems.

Common SYSUSERID Mistakes

  • Using SYSUSERID as a DEFINE field name in new 11.6 programs.
  • Assuming batch SYSUSERID always equals RACF log userid without verification.
  • Truncating sixteen-byte field to eight on TITLE without audit approval.
  • Omitting userid stamp when regulations require three-way header with date and job.
  • Confusing SYSUSERID with SQL USER or DB2 authorization id.
  • Hard-coding userid tests instead of profile-driven security.

Explain It Like I'm Five

SYSUSERID is your name tag the computer reads when you use a screen program. For batch jobs it is like writing who started the homework machine on the cover page. The name tag is already made—you do not sew your own field called SYSUSERID in 11.6 because that name is reserved for the real tag.

Exercises

  1. Add TITLE line with SYSUSERID, SYSDATE, and SYSTIME.
  2. Explain CICS EIB copy behavior in your own words.
  3. Plan rename for legacy field named SYSUSERID before 11.6 compile.
  4. Compare when to use SYSUSERID versus JCL &SYSUID on PARM.
  5. Design audit header record layout including sixteen-byte user field.

Quiz

Test Your Knowledge

1. SYSUSERID in Easytrieve is:

  • A 16-byte alphanumeric system field identifying the user
  • An eight-byte packed job name
  • A DEFINE-required FILE field
  • The SQL authorization id only

2. In CICS screen processing SYSUSERID is copied from:

  • The EIB (Execute Interface Block)
  • SYSDATE
  • RECORD-COUNT
  • JCL PARM only

3. SYSUSERID became a reserved word in:

  • Easytrieve 11.x migration—cannot use SET as field name either
  • Release 6.4 only
  • Never reserved
  • COBOL interop only

4. Batch audit headers use SYSUSERID to show:

  • Who submitted or is associated with the execution context
  • File record length
  • Page number
  • Sort key sequence

5. You reference SYSUSERID without:

  • DEFINE in Library—it is system-defined
  • Any JOB statement
  • REPORT keyword
  • END-PROC
Published
Read time14 min
AuthorMainframeMaster
Reviewed by MainframeMaster teamVerified: Broadcom Easytrieve 11.6 Screen Processing SYSUSERID, New Reserved WordsSources: Broadcom Easytrieve 11.6 Use the SCREEN Statement, New Reserved WordsApplies to: Easytrieve SYSUSERID user identification