|
|
|
|
| Procedure Name: |
SQRP-EDS-PRINT-TXT-RJUST
|
| Procedure Description: |
Print text on current line at required column right justified.
|
| Procedure Type: |
Local
|
|
| | Arguments/Parameter: |
|
| SLNO. | Variable | Mode |
| 1 | #COL | By Value |
| 2 | #LEN | By Value |
| 3 | $TXT | By Value |
| 4 | #ATR | By Value |
|
|
| | Database Tables: |
|
| SLNO. | Table Name | Access Mode | Remarks |
| 1 | None | N/A | Not Applicable |
|
| Processing: |
Main Processing.
- Prints text right justified at #col on the current line.
- In case of field overflow, truncates chars from right.
|
|
|
|
|
| Procedure Name: |
SQRP-EDS-PRINT-NUM-RJUST
|
| Procedure Description: |
Print number on current line at required column right justified.
|
| Procedure Type: |
Local
|
|
| | Arguments/Parameter: |
|
| SLNO. | Variable | Mode |
| 1 | #COL | By Value |
| 2 | $MSK | By Value |
| 3 | #NUM | By Reference |
|
|
| | Database Tables: |
|
| SLNO. | Table Name | Access Mode | Remarks |
| 1 | None | N/A | Not Applicable |
|
| Processing: |
Main Processing.
- Prints number right justified at #col on the current line. Least significant digit appears at column specified.
- Number is formated as per edit mask specified.
|
|
|
|
|
| Procedure Name: |
SQRP-EDS-ROUND
|
| Procedure Description: |
Round number as per specified precision.
|
| Procedure Type: |
Local
|
|
| | Arguments/Parameter: |
|
| SLNO. | Variable | Mode |
| 1 | #NUM | By Reference |
| 2 | #PRECISION | By Value |
|
|
| | Database Tables: |
|
| SLNO. | Table Name | Access Mode | Remarks |
| 1 | None | N/A | Not Applicable |
|
| Processing: |
Main Processing.
- Use edit function to achieve rounding.
|
|
|
|
|
| Procedure Name: |
SQRP-EDS-ROUND-BY-MSK
|
| Procedure Description: |
Round number as per specified edit mask.
|
| Procedure Type: |
Local
|
|
| | Arguments/Parameter: |
|
| SLNO. | Variable | Mode |
| 1 | #NUM | By Reference |
| 2 | $MSK | By Value |
|
|
| | Database Tables: |
|
| SLNO. | Table Name | Access Mode | Remarks |
| 1 | None | N/A | Not Applicable |
|
| Processing: |
Main Processing.
- Find precision required as in edit mask.
- Call SQRP-EDS-Round to round the number.
|
|
|
|
|
| Procedure Name: |
SQRP-EDS-ASSERT-COL
|
| Procedure Description: |
Validate column position.
|
| Procedure Type: |
Local
|
|
| | Arguments/Parameter: |
|
| SLNO. | Variable | Mode |
| 1 | #COL | By Reference |
| 2 | $MSG | By Value |
|
|
| | Database Tables: |
|
| SLNO. | Table Name | Access Mode | Remarks |
| 1 | None | N/A | Not Applicable |
|
| Processing: |
Main Processing.
- Test that column is >= 0 else set to 1 and log and show message in sqr.log
|
|
|
|
|
| Procedure Name: |
SQRP-EDS-GET-FLD-BY-NUM
|
| Procedure Description: |
Get Specified field from record.
|
| Procedure Type: |
Local
|
|
| | Arguments/Parameter: |
|
| SLNO. | Variable | Mode |
| 1 | $RECORD | By Value |
| 2 | $DELIM | By Value |
| 3 | #FLD_NUM | By Value |
| 4 | $FLD_VAL | By Reference |
|
|
| | Database Tables: |
|
| SLNO. | Table Name | Access Mode | Remarks |
| 1 | None | N/A | Not Applicable |
|
| Processing: |
Main Processing.
- Extract specified field from record by specifying field number and field delimiter character.
|
|
|