cdc:nos2.source:nam5871:ns_lsn
Table of Contents
NS$LSN
Table Of Contents
- [00005] PROC NS$LSN
- [00007] NS$LSN - ASSIGN ACTIVITY SEQUENCE NUMBER.
- [00011] ASSIGN ACTIVITY SEQUENCE NUMBER.
Source Code
- NS$LSN.txt
- *DECK NS$LSN
- USETEXT DEF$NS
- USETEXT NAT$NS
- USETEXT NPT$NS
- PROC NS$LSN; # ASSIGN ACTIVITY SEQUENCE NUMBER #
- # TITLE NS$LSN - ASSIGN ACTIVITY SEQUENCE NUMBER. #
- BEGIN # NS$LSN #
- #
- ** NS$LSN - ASSIGN ACTIVITY SEQUENCE NUMBER.
- *
- * J.C. LEE 1981
- *
- * THIS ROUTINE ASSIGNS ACTIVITY SEQUENCE NUMBER.
- *
- * ENTRY:
- * NONE.
- *
- * EXIT:
- * NONE.
- *
- * METHOD:
- * INCREMENT LSN.
- * IF LSN REACH LIMIT, RESET TO 1.
- * SET NPT$LSN TO LSN.
- * SET NAT$LSN TO LSN.
- *
- #
- ITEM LSN U; # LOAD SEQUENCE NUMBER FOR CURRENT ACTIVITY #
- LSN = NPT$LSN[NTORD] + 1; # INCREMENT TO NEXT SEQUENCE NUMBER #
- IF LSN GR MAX$LSN
- THEN
- LSN = 1;
- NPT$LSN[NTORD] = LSN;
- NAT$LSN[0] = LSN;
- RETURN;
- END # NS$LSN #
- TERM
cdc/nos2.source/nam5871/ns_lsn.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator