Routing Subroutines
Manufacturing routing and operations
Subroutine count: 3
Table of Contents
VB_ROUTE.DELETE
Source: S:\LinuxShare\pro3prog\VBBASE\VB_ROUTE.DELETE
| Property | Value |
|---|---|
| Status | [+] analyzed |
| Safety | [INT] internal |
| Pattern | Internal |
| Args | 0 |
| Description | Internal code fragment (not a standalone subroutine) that deletes a routing and its line/note/PBS records. Uses pre-opened file handles via GOSUB. Also manages alternate routing cross-references and route suggestion flags. |
Tables Written: HEADFILE, PRODUCT, ALTROUTE.XREF, LINEFILE, NOTEFILE, PBSFILE, PRODUCT.1287
API Call Example:
POST /api/admin/subroutine/call
{
"name": "VB_ROUTE.DELETE",
"args": {
}
}VB_ROUTE.REV1
Signature: SUBROUTINE ROUTE(CO,PARTNO,TMPNO,WONO,LINE,OPTION,MESSAGE)
Source: S:\LinuxShare\pro3prog\VBBASE\VB_ROUTE.REV1
| Property | Value |
|---|---|
| Status | [X] deprecated |
| Args | 7 |
| Superseded By | VB_ROUTE.REV2 |
Arguments:
| Index | Name | Direction | Description |
|---|---|---|---|
| 0 | CO | in | |
| 1 | PARTNO | in | |
| 2 | TMPNO | in | |
| 3 | WONO | in | |
| 4 | LINE | in | |
| 5 | OPTION | in | |
| 6 | MESSAGE | out |
API Call Example:
POST /api/admin/subroutine/call
{
"name": "VB_ROUTE.REV1",
"args": {
"0": "",
"1": "",
"2": "",
"3": "",
"4": "",
"5": ""
}
}VB_ROUTE.REV2
Signature: SUBROUTINE ROUTE(DATAIN,DATAOUT,MESSAGE)
Source: S:\LinuxShare\pro3prog\VBBASE\VB_ROUTE.REV2
| Property | Value |
|---|---|
| Status | [+] analyzed |
| Safety | [WARN] dangerous |
| Pattern | Process |
| Args | 3 |
| Description | Multi-purpose routing operations subroutine. Copies routings between standard, template, and WIP; deletes routings/lines; adds lines; completes/uncompletes WIP route lines; manages transient parts and route formatting. Controlled by OPTION parameter (1-14). |
| Dangerous REQTYPE | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 |
Arguments:
| Index | Name | Direction | Description |
|---|---|---|---|
| 0 | DATAIN | in | Input data array: <1>=CO, <2>=PARTNO, <3>=TMPNO (template), <4>=WONO (work order), <5>=LINE, <6>=OPTION (1-14), <7>=ROUTE.SUGG (comma-separated suggestion flags) |
| 1 | DATAOUT | out | Output data (not populated in current code) |
| 2 | MESSAGE | out | Status/error message (e.g., ‘INVALID OPTION’) |
Tables Written: SROUTE.HEAD, SROUTE.LINE, SROUTE.LINE.1287, SROUTE.NOTE, WIPROUTE.HEAD, WIPROUTE.LINE, WIPROUTE.LINE.1287, WIPROUTE.NOTE, ITEMMANF, PRODUCT.1287
API Call Example:
POST /api/admin/subroutine/call
{
"name": "VB_ROUTE.REV2",
"args": {
"0": ""
}
}Last updated: 2026-02-05 11:29 PM