1.Functional Description
1.1Purpose
This function will perform Get, Add, Update, Delete, Delete All, Get Next, Add/Update, and Terminate
functions on the Rule Ranges cache.
1.2Setup Notes and Prerequisites
The calling application is responsible for loading all appropriate key values to the data structure
and identifying the number of keys to use in retrieval/update processes.
'2' Add - add a cache element.
'3' Update - update a cache element.
'4' Delete - delete a cache element.
'5' Delete All - delete all cache elements
'6' Get Next - retrieve the next cache element
'7' Add/Update - will add if element does not exist, will change if it does exist.
'8' Terminate - terminate cache
'9' Close cursor
Number of Keys
key values for a Get, Update, Delete, Get Next, and Add/Update.
A zero may be passed to retrieve or update the first record or add a new element without
re-loading the cache from the F32922 file.
1.3Special Logic
See parameter notes for special logic related to "add" mode. A load of the cache will be performed
using data retrieved from the Rule Ranges table (F32922) if the number of keys is not zero; a "normal"
Add function (i.e. new cache element inserted using values passed in as input) if the number of keys
is zero.
2.Technical Specifications
2.4Processing
I. Perform setup functions
B. Retrieve cursor (either from data pointer or new CACHE cursor)
C.Return CACHE cursor upon requested
D. Set DS Cache Error Code = '0';
E. If not successful Set error "032E," "Error Processing Cache".
II. Processing Based on Mode.
2.Retrieve the first element on the cache matching the key values passed as input; the
number of keys to be used is passed in the input parameters, If "0" fetch first element in the
list.
3.Load the values from the retrieved element into the data structure to be passed back to
the calling program.
4.If get fails DS Cache Error Code = '6'.
B.If Process Mode is "2" - ADD.
2.If number of keys NOT = 0, perform "Load" function:
to be used is passed in through input parameters.
If File Code is "E" then retrieve both "If" code and "then" code.
For each retrieved record, write an element to cache.
2.If delete fails DS Cache Error Code = '5'.
E.If Process Mode is "5" - DELETE ALL:
2.If delete fails DS Cache Error Code = '5'.
cursor should have been set through a previous "Get" action, i.e. process mode "4", if number of
keys is "0" then fetch next record without using any key).
2.Load the values from the retrieved element into the data structure to be passed back to
the calling program.
3.If there are no more elements close cursor and set DS Cache Error Code = '1'.
G.If Process Mode is "7" - ADD/UPDATE:
D3200150 - F32922 Process Rule Ranges Cache
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cFileCode | FCOD | char | NONE | NONE |
The file code is used in the *RANGE and *VALUE file for configurations to determine if the *RANGE or *VALUE goes with a "IF" statement, a
| ||||
mnParentItemNumber | KIT | MATH_NUMERIC | NONE | NONE |
The system provides for three separate item numbers.
1. Item Number (short) - An eight-digit, computer assigned, completely
| ||||
szBranchPlant | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
mnRuleNumber | ATO# | MATH_NUMERIC | NONE | NONE |
The number associated with a set of cross-segment editing rules or assembly inclusion rules. | ||||
mnRuleSequenceNumber | ATOS | MATH_NUMERIC | NONE | NONE |
The Sequence number is the rule number within an edit group of cross-segment editing rules or assembly inclusion rules. You can insert a
| ||||
nNumberOfKeys | INT01 | integer | NONE | NONE |
Number of Days in Future to Query for Responses Due. | ||||
cCacheActionCode | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cCacheCodeError | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMessage | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | NONE | 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
| ||||
mnJobNumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
idCursor | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
cReturnCursor | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szRangeValue1 | SRFV | char | OPT | NONE |
The starting value of a range of numbers. In configurator, the *Range variable is used in the Values field associated with the cross-segment
| ||||
szRangeValue2 | SRTV | char | OPT | NONE |
The ending value of a range of numbers. In configurator, the *Range variable is used in the Values field associated with the cross-segment
| ||||
szNewRangeValue1 | SRFV | char | OPT | NONE |
The starting value of a range of numbers. In configurator, the *Range variable is used in the Values field associated with the cross-segment
| ||||
szNewRangeValue2 | SRTV | char | OPT | NONE |
The ending value of a range of numbers. In configurator, the *Range variable is used in the Values field associated with the cross-segment
| ||||
jdEffectiveFromDate | EFFF | JDEDATE | OPT | NONE |
A date that indicates one of the following:
o When a component part goes into effect on a bill of material
o When a routing step goes into
| ||||
jdEffectiveThruDate | EFFT | JDEDATE | OPT | NONE |
A date that indicates one of the following:
o When a component part is no longer in effect on a bill of material
o When a routing step is no
| ||||
nIndexNumber | INT01 | integer | OPT | NONE |
Number of Days in Future to Query for Responses Due. |
None |
F32922 Cross Segment Editing Rules - Range |