Skip to content

MDRPSDS Copybook

MDRest4i program status data structure (PSDS) definitions

pgmName

Program name pgmName Char(10) overlay(sdsdata:001);

statusCode

Status code statusCode Zoned(5:0) overlay(sdsdata:011);

statementNbr

RPG IV source listing line number or statement number statementNbr Char(8) overlay(sdsdata:021);

errorRoutine

Name of the RPG IV routine in which the exception or error occurred errorRoutine Char(8) overlay(sdsdata:029);

exceptionType

Exception type (CPF or MCH) exceptionType Char(3) overlay(sdsdata:040);

exceptionNbr

Exception number (message number) exceptionNbr Char(4) overlay(sdsdata:043);

pgmLibrary

Name of library in which the program is located pgmLibrary Char(10) overlay(sdsdata:081);

exceptionData

Retrieved exception data exceptionData Char(80) overlay(sdsdata:091);

jobName

Job name jobName Char(10) overlay(sdsdata:244);

jobUser

User profile name jobUser Char(10) overlay(sdsdata:254);

jobNumber

Job number jobNumber Char(6) overlay(sdsdata:264);

pgmStartDate

Date (in UDATE format) the program started running in the system pgmStartDate Char(6) overlay(sdsdata:270);

pgmStartTime

Time (in the format hhmmss) the program started running in the system pgmStartTime Char(6) overlay(sdsdata:276);

jobCcsid

Job CCSID jobCcsid uns(10) overlay(sdsdata:301);

srcFile

Source file name srcFile char(10) overlay(sdsdata:304);

srcLibrary

Source library name srcLibrary char(10) overlay(sdsdata:314);

srcMember

Source member name srcMember char(10) overlay(sdsdata:324);

procedurePgm

Program containing procedure procedurePgm Char(10) overlay(sdsdata:334);

procedureModule

Module containing procedure procedureModule Char(10) overlay(sdsdata:344);

currentUsrPrf

Current user profile name currentUsrPrf Char(10) overlay(sdsdata:358);

### topArrayElm Number of top level array elements set by DATA-INTO or XML-INTO topArrayElm int(20) pos(372);