|
|
|
Procedure Name: |
SQRP-TRC-BEGIN
|
Procedure Description: |
Called at the begining of each procedure.
|
Procedure Type: |
Local
|
| Arguments/Parameter: |
|
SLNO. | Variable | Mode |
1 | $PROC_NAME | By Value |
2 | $PROC_ARGS | By Value |
|
| Database Tables: |
|
SLNO. | Table Name | Access Mode | Remarks |
1 | None | N/A | Not Applicable |
|
Processing: |
Main Processing
- When called first time, initialises the procedure call stack array. It also sets the default trace options and logs begining of call trace message.
- Log entry message for given procedure name if that procedure qualifies to be logged.
- If argument list is not null, log their value at the time of entering procedure.
- All logging is done in log file created by sqr program.
- Check for array subscript overflow and log message appropriate error message.
- Calling procedure must call SQRP-TRC-End.
|
|
|
|
Procedure Name: |
SQRP-TRC-END
|
Procedure Description: |
Called before end of each procedure.
|
Procedure Type: |
Local
|
| Arguments/Parameter: |
|
SLNO. | Variable | Mode |
1 | $PROC_ARGS | By Value |
|
| Database Tables: |
|
SLNO. | Table Name | Access Mode | Remarks |
1 | None | N/A | Not Applicable |
|
Processing: |
Main Processing
- Check for array subscript underflow and log message appropriate error message.
- Get last procedure name from array.
- Get current date-time.
- If procedure qualifies for trace, log exit message.
- If argument list is not null, log their value at the time of exiting procedure.
- Calling procedure must call SQRP-TRC-Begin.
- All logging is done in log file created by sqr program.
|
|
|
|
Procedure Name: |
SQRP-TRC-STOP
|
Procedure Description: |
Called before stop.
|
Procedure Type: |
Local
|
| Arguments/Parameter: |
|
SLNO. | Variable | Mode |
N/A | None | Not Applicable |
|
| Database Tables: |
|
SLNO. | Table Name | Access Mode | Remarks |
1 | None | N/A | Not Applicable |
|
Processing: |
Main Processing
- Get current date-time.
- Log Procedure Call Trace.
- All logging is done in log file created by sqr program.
|
|
|
|
Procedure Name: |
SQRP-TRC-OPTIONS
|
Procedure Description: |
Called before stop.
|
Procedure Type: |
Local
|
| Arguments/Parameter: |
|
SLNO. | Variable | Mode |
1 | #ON | By Value |
2 | $PROC_LIST | By Value |
|
| Database Tables: |
|
SLNO. | Table Name | Access Mode | Remarks |
1 | None | N/A | Not Applicable |
|
Processing: |
Call Trace Options
- Sets Call Trace mode to On/Off depending on value #on variable (1/0).
- Sets list of procedures to be traced. ';*;' means all procedures.
- Log Call trace message.
|
|
|
|
Procedure Name: |
SQRP-TRC-ARGS
|
Procedure Description: |
Called internally by Trace Application.
|
Procedure Type: |
Local
|
| Arguments/Parameter: |
|
SLNO. | Variable | Mode |
1 | #IN | By Value |
2 | $PROC | By Value |
3 | $TIME | By Value |
4 | $ARGS | By Value |
|
| Database Tables: |
|
SLNO. | Table Name | Access Mode | Remarks |
1 | None | N/A | Not Applicable |
|
Processing: |
Main Processing.
- Depending on value of #in, log in/out message.
- Log argument list.
- Log Call trace message.
|
|
|
|
Procedure Name: |
SQRP-TRC-MSG
|
Procedure Description: |
May be called anywhere to Log Message.
|
Procedure Type: |
Local
|
| Arguments/Parameter: |
|
SLNO. | Variable | Mode |
1 | $MSG | By Value |
|
| Database Tables: |
|
SLNO. | Table Name | Access Mode | Remarks |
1 | None | N/A | Not Applicable |
|
Processing: |
Main Processing.
- Get Current Time.
- Log message.
|
|
|