Data Structure Elements
Job Number:
This is a unique number retrieved from B0000564. Before calling the cache for the first time, get
this number from the function. Use the same number every time this cache is called.
Cache Action Code:
Cache Get = 1
Cache Add = 2
Cache Update = 3
Cache Delete = 4
Cache Delete All = 5
*Cache Get Next = 6
Cache Add/Update = 7 (DO NOT USE)
**Cache End = 8
Cache Close Cursor = 9
***Load Cache from F05400 = 10
*After finished with selecting next records, call the Close Cursor (9).
**When finished with the entire cache, be sure to End (8)
***When loading the cache, Address Number and Enrollment Event Code are required. Also, whatever
EMail Application Version passed in will be written to each record in the cache.
Cache Cursor:
Declare a variable of DD Type GENLNG. Be sure to provide this variable as input/output. DO NOT
manipulate the value of the variable, it is used by the function.
Index 1:
*Job Number
*Data Item
Number Keys:
The number of keys in the index being used to perform the selected action. This allows for partial
key fetch or delete.
Suppress Error Message:
1 = Suppresses the function from setting errors on the application. An error code is still returned
in the Error Message ID parameter.
Cache Name:
Convert the Job Number into a string and pass in this parameter. This is how the cache is kept
unique in memory from any other (just like a table name keeps the table unique from any other table).
Error Message ID:
Returns an error if the selected cache action cannot be performed. For example, if a Load cache was
called without an event code, or if Fetch Next was requested and the last cache record has already
been reached.
Data Item:
A column in the cache
Date Item Type:
A column in the cache
History Data Item Type:
A column in the cache
Math Numeric Pre Value:
A column in the cache
String Pre Vlaue:
A column in the cache
Date Pre Value:
A column in the cache
Math Numeric New Value:
A column in the cache
String New Value:
A column in the cache
Date New Value:
A column in the cache
Annual Salary:
A column in the cache
Rate Hourly:
A column in the cache
Date Effective On:
A column in the cache
Date Pay Period Ending:
A column in the cache
Change Reason:
A column in the cache
String History Data:
A column in the cache
Date History Data:
A column in the cache
Math Numeric History Data:
A column in the cache
Functional Description
Purpose
The purpose of this cache is to store the sequence of applications to call for the current
self-service user as well as the step the user is currently executing. Storing this in cache will make
displaying the director form faster, as well as providing a convenient location to keep the current step in
the process. The cache can also store the group, position and before step associated with the
self-service action step in the particular sequence. This information will be used when validating the
sequencing for the process flow set up.
Setup Notes and Prerequisites
Special Logic
Technical Specification
Use the following action codes to work with cache:
'6' = Get Next Cache Record (using a partial key)
'7' = (Do Not Use)
'8' = End Cache (Cache is deleted and closed)
'9' = Close Cache Cursor
'10' = Load Cache
initialized. A value will be passed back that must be stored in a variable. Each time this BSFN is
called the value in that variable must be passed into the BSFN and a new value will be sent back to the
variable. This is the cache handle. If the calling program needs more than one handle on the database
at a time, then more than one GENLNG can be used.
The Cache Job Number should be the next number from B0000564 for the Next Number Index.
The Cache Name should be the Job Number converted into string format
Return errors through Error Message ID, DTAI.
The data can be accessed using the full key or a partial key using Number Keys and Index ID, to
distinguish between a full or a partial fetch. JobNumberAKey1 must always be part of the key.
See the help on the Index parameter for a list of the indexes defined for this cache
When adding a record always attempt to get the record first. If no error is returned then the
record already exists and it cannot be added.
D0500737 - Future Data Print Record Work Cache
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnJobnumberA | JOBS | MATH_NUMERIC | REQ | INPUT |
The job number (work station ID) which executed the particular job. | ||||
szCacheActionCode | CACTN | char | REQ | INPUT |
A code that indicates the activity you want to perform. Valid codes:
o Get - Retrieve the cache element
o Add - Add a cache element
o
| ||||
idCacheCursor | GENLNG | ID | REQ | BOTH |
General purpose ID variable. | ||||
mnNumberKeys | NKEYS | MATH_NUMERIC | OPT | INPUT |
The number of keys in an index that will be used to retrieve, delete, or update a record. | ||||
cSuppressErrorMessage | SUPPS | char | OPT | INPUT |
A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.
0 = allow
| ||||
szCacheName | PID | char | REQ | INPUT |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
szErrorMessageID | DTAI | char | OPT | OUTPUT |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
szDataItem | DTAI | char | OPT | NONE |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
mnDateItemType | MATH01 | MATH_NUMERIC | OPT | NONE |
- - - Good Performance Low Value. | ||||
cHistoryDataItemType | DTAT | char | OPT | NONE |
Defines the type of data to be stored in the field. The data item types are user defined codes (98/DT). Note: All amount fields should be
| ||||
mnMathNumericPreValue | MATH03 | MATH_NUMERIC | OPT | NONE |
- - - Bad Performance Low Value. | ||||
szStringPreVlaue | VC30A | char | OPT | NONE |
This is a generic field used as a work field in Everest. | ||||
jdDatePreValue | DATE01 | JDEDATE | OPT | NONE |
Event point for JDE Date. | ||||
mnMathNumericNewValue | MATH04 | MATH_NUMERIC | OPT | NONE |
Event point for Math Numeric. | ||||
szStringNewValue | VC30A | char | OPT | NONE |
This is a generic field used as a work field in Everest. | ||||
jdDateNewValue | DATE01 | JDEDATE | OPT | NONE |
Event point for JDE Date. | ||||
mnAnnualSalary | SAL | MATH_NUMERIC | OPT | NONE |
The amount that an employee is paid in one year, assuming that the employee is paid every pay period of the year.
For WorldSoftware:
For
| ||||
mnRateHourly | PHRT | MATH_NUMERIC | OPT | NONE |
The employee's hourly rate, which is retrieved during time entry. If you enter a rate in this field on any other form, that rate can override the
| ||||
jdDateEffectiveOn | EFTO | JDEDATE | OPT | NONE |
A future date when all changes will take effect or the date when the changes went into effect. If you do not enter a date in this field, the system
| ||||
jdDatePayPeriodEnding | PPED | JDEDATE | OPT | NONE |
The last day of a processing period (pay period, month, quarter or year). | ||||
szChangeReason | TRS | char | OPT | NONE |
A code that indicates the reason for one of the following:
o Changing an active employee's record
o Terminating an employee
o
| ||||
szStringHistoryData | PHSD | char | OPT | NONE |
A code that indicates selection or a future set of information. The value in this field represents an employee master value to be updated in
| ||||
jdDateHistoryData | DATE01 | JDEDATE | OPT | NONE |
Event point for JDE Date. | ||||
mnMathNumericHistoryData | MATH01 | MATH_NUMERIC | OPT | NONE |
- - - Good Performance Low Value. |
None |
None |