Transaction Process Flow

Narrative Title

Send information to PC application for use in printing mailing label. No mailing date recorded.

 

Transaction Purpose

To extract and send serial number and user name to a PC application for use in printing the standard mailing label on outgoing correspondence without recording the mailing date. Principally used for printing labels for non-official correspondence, other non-office action correspondence, or reprinting damaged labels.

 

Restrictions on Transaction Use

The transaction must be initiated from a bar code reader terminal. Certain transactions are limited to particular terminals. The transaction will terminate upon the first edit rejection.

 

Program Source Code: XXXXRT10

 

TRANSACTION CODE: XXXX

FORM TB: INPUTS

 

Input Transaction (User)

 

Data Field Required Format
Transaction Code 4, numeric
Error Code 1, alphanumeric
Serial Number Type 1, alphanumeric
Serial Number 8, numeric

 

Input Transaction (System)

 

Data Field Required Format
System Terminal Location 5, alphanumeric
Current Date 8, numeric

 

 

TRANSACTION CODE: XXXX

FORM TB: OUTPUTS

 

Output Message Valid Good Response

 

Data Field Required Format
Transaction Code 4, numeric
Error Code 1, alphanumeric
Serial Number Type 1, alphanumeric
Serial Number 8, numeric
User Name 22, Alphanumeric

 

Output Message in Error

 

Data Field Required Format
Transaction Code 4, numeric
Error Code     ‘X’ 1, alphanumeric
Serial Number Type   ‘S’ 1, alphanumeric
Serial Number 8, numeric
Error Message (From Reference Error List) 65, Alphanumeric

 

Standard

 

Station Verify                       Y

Transaction Verify              Y

Trans/Station Ver.               Y

Record Check                      Y

Receipt                                  Y

Security Mask                      N

Password                               N

 

Input message edits:

 

The table below provides the following information:

 

Input Data Field From input message layout on page 1
Source S = The information has been passed into the program through the System itself (i.e., from COMS).T = Information sent by the user in the input transaction message
Data Base Element Data field name with which the edited field is associated, if relevant
Dataset Database dataset from/to which the value is retrieved/updated
Required Edit to be valid the field must pass the documented edit
Error Code Code issued if the field fails validation

 

 

Input Data Field Source Data Base Element Source Required Edit Error Code
System Terminal Location S     Must be a valid terminal in the Reference TLOC Table 01025
Transaction Code S Reference Must be a valid transaction in the Reference TRAN TableMust be enabled 0120798888
System Terminal Location S     Must be a valid terminal in the Reference TRMS Table 01025
Transaction Text T     Must be valid input length of 12 01200
Serial Number T Must be numeric and 1st 2 digits must not = 00 01003
Serial Number T Account Number Account Must be found 01002
Inactive Flag
Account
Must = False 01004
Status Account Must ≠ 500 thru 510 00500
System Terminal LocationSystem Terminal Type SS If ≠ “XXXX1”,”TM3DT”, “MPU04”Must be a Bar Code Reader 01025
System Terminal Location S BTCH-NUM Account If not = “XXXX1”,”TM3DT”, “MPU04”If numeric, it must = 0 01042
System Terminal Location S CHRG-TO-LOC Account

 

 

If not = “XXXX1”,”TM3DT”, “MPU04”Must = XXX or spaces or a valid location 01020
Status Account Must = 600, 601, 602, 606, 607, 608, 609, 641, 645, 647, 649, 651, 653, 654, 656, 658, 660, 666, 668,682, 753, 757, 807, 809, 811, 813, 817, 821, 823 or 825 01205

 

 

Updates to the Account dataset:

 

Input Data Field Source Data Base Element Data Set Action Required
System Terminal LocationSystem Terminal LocationSystem Terminal Location SS

 

S

LOC 

 

LOC

Account 

 

Account

If position 2 =position 2Andpositions 0 – 4 ≠ “XXXX1”

 

Update with System Terminal Location (positions 2-4)

System Terminal LocationCurrent Date SS IN-LOC-DT Account If positions 0 – 4 ≠ “XXXX1”Update with Current Date (CCYYMMDD)
System Terminal LocationEMPE-LOUser-NUM

 

 

LO-ASGN

SEmployee 

Account

 

 

Account

LOC 

 

 

User-NUM

LOC

Account 

 

 

Account

Account

If = “XXXX1”Update with Employee-EMPE-LO from User’s Employee record Using Account-User-NUM as Employee-EMPE-NUM (key).If = 0,

Update with Account-LO-ASGN.

If Account-LO-ASGN = spaces

DO NOT update Account-LOC

 

Create a new Update record, If an Update record already exist with same key and Update-ENT-NUM = 9999, NO UPDATE IS CREATED:

 

Input Data Field Source Data Base Element Data Set Action Required
Account Number Account Account Number Update Update with Account-Account Number
Current Date S UPDT-DT Update Update with Current Date (YYYYMMDD)
Current Time S UPDT-TI Update Update with Current Time (HHMMSS)
Program ID PROG-ID Update Update with “XXXXBC30”
Transaction Code T TRAN-CD Update Update with Transaction Code
ENT-NUM Update Update with next sequential number for this serial number
SET-ARRAY Update Update with data set name that was updated/created ie. Account CM EP SSR; Maximum of 50 entries of 4 characters.

 

Process Flow

  • Check to make sure that the System Terminal Location is found on the Reference TLOC and Reference TRMS record.

Error Code: 01025 returned if not found, processing ends

 

  • Check to make sure Transaction code is found on the Reference TRAN record and is enabled.

Error Code 01207: returned if not found

Error Code: 09888 returned if transaction not enabled, processing ends.

 

  • Must have a valid message length of 12.

Error Code: 01200 returned if not, processing ends.

 

  • Serial Number must be numeric and first 2 digits must NOT be 00.

Error Code 01003: returned, processing ends.

 

  • Serial Number is used to read the Account dataset.

Error Code 01002: returned if Account record not found, processing ends.

Error Code 01004: returned if Account-Inactive Flag is TRUE, processing ends

Error Code 00500: returned if Account-Status is 500-510, processing ends.

 

  • Checks to make sure if System Terminal Location is not XXXX1″,”TM3DT”, “MPU04”, then it was started via a Bar Code Reader.

Error Code: 01025 returned if not, processing ends.

 

  • If System Terminal Location is not “XXXX1”,”TM3DT”, “MPU04”

then if Account-BTCH-NUM is numeric, it must be 0.

Error Code 01042: returned, processing ends.

 

  • Checks to make sure if System Terminal Location is not “XXXX1”, “TM3DT”, or “MPU04”, and TERM_LOC not or “XXX”, spaces, or a valid location   Then TERM_LOC must match either Account-LOC OR or Account-CHRG-TO-LOC

Error Code: 01020 returned if not, processing ends.

 

  • Account Stat must be = 600, 601, 602, 606, 607, 608, 609, 641, 645, 647, 649, 651, 653, 654, 656, 658, 660, 666, 668,682, 753, 757, 807, 809, 811, 813, 817, 821, 823 or 825

Error Code: 01205 returned if not, processing ends.

 

  • Update Account record as follows:

 Account-LOC is updated as follows:

 If Account-LOC position 2 = System Terminal Location position 2, and System           Terminal Location ≠ XXXX1, then

Update Account-LOC with System Terminal Location position 2-4.

If System Terminal Location = “XXXX1”

If Account-User-NUM > 0, then

Read Employee to update it with Employee-EMPE-LO

Else

If Account-User-NUM = 0, then

Update Account-LOC with Account-LO-ASGN, if it is not = space.

Account-IN-LOC-DT is set to Current Date (CCYYMMDD) if the Account-LOC was updated.

 

  • Creates Output Message back to user:

Output Transaction Code set to Transaction Code

Output Serial Number set to Serial Number

Output Serial Number Type set to “S”

Output User Name set as follows:

If Account-LO-ASGN > Space

Read Employee dataset for Account-User-NUM.

If Employee record was found, use Employee-EMPE-NAM,

Else

Use “User Name Notfound”. ( this is default if Account-LO-ASGN = space as well)

 

  • Reads Update (System-UPDATES) for last record that matches Account-Account Number to Update-Account Number and Update-UPDT-DT = Current Date. If Record is found, and Update-ENT-NUM = 9999, then this next process is skipped.
  • Create a new Update record.

 Update-Account Number is Set to Account-Account Number

Update-UPDT-DT is Set to Current Date

Update-UPDT-TI is set to Current Time

Update-PROG-ID is set to “XXXXRT10”

Update-TRAN-CD is set to “XXXX”

Update-ENT-NUM is set +1 from last record found previously, if none found, start with 1.

Update-SET-ARRAY is set to the list of short dataset names that were updated during this transaction.