cdc:nos2.source:nam5871:dlwritc
Table of Contents
DLWRITC
Table Of Contents
- [00007] PROC DLWRITC(LINE, LSIZE)
- [00048] PROC DLDISDE
- [00049] PROC DLWRT
Source Code
- DLWRITC.txt
- *DECK DLWRITC
- USETEXT DLFPDEF
- USETEXT DLONEL
- USETEXT OCIOBB
- USETEXT OFETB
- USETEXT OUTCDA
- PROC DLWRITC(LINE, LSIZE); # MOVE LINE TO CIO BUFFER #
- *IF DEF,IMS
- #
- *1DC DLWRITC
- *
- * 1. PROC NAME AUTHOR DATE
- * DLWRITC P.C.TAM 78/10/03
- *
- * 2. FUNCTIONAL DESCRIPTION.
- * MOVE LINE TO OUTPUT BUFFER, ADD HEADER INFORMATION.
- *
- * 3. METHOD USED.
- * SAME AS 2.
- *
- * 4. ENTRY PARAMETERS.
- * LINE ARRAY CONTAINING THE LINE
- * LSIZE SIZE OF LINE IN CM WORDS
- * LINE$COUNT LINE COUNT OF THE CURRENT PAGE
- *
- * 5. EXIT PARAMETERS.
- * NONE.
- *
- * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
- * DLFPDEF OCIOBB OFETB OUTCDA
- *
- * 7. ROUTINES CALLED.
- * DLDISDE CONVERT BINARY TO DISPLAY DECIMAL
- * DLWRT WRITE LINE TO CIO BUFFER
- *
- * 8. DAYFILE MESSAGES.
- * NONE.
- *
- #
- *ENDIF
- #
- EXTERNAL VARIABLES
- #
- XREF
- BEGIN
- PROC DLDISDE; # CONVERT BINARY TO DISPLAY DECIMAL #
- PROC DLWRT; # WRITE LINE TO CIO BUFFER #
- END
- #
- LOCAL VARIABLES
- #
- ARRAY LINE S(1);
- BEGIN
- ITEM LINEX U(0,0,WL);
- END
- ITEM
- LSIZE I, # SIZE OF LINE IN CM WORDS #
- LINE$INC I, # NO OF LINES ADDED TO REPORT #
- TEMP C(WC); # TEMPORAY VARIABLE #
- # *********************************************************************#
- BEGIN
- IF LINE$COUNT GQ MAXNO
- THEN
- BEGIN # WRITE PAGE HEADER #
- DLWRT(OFET,ONEL,1) ;
- DLWRT(OFET, L1, 12);
- PAGE$COUNT = PAGE$COUNT + 1;
- DLDISDE(PAGE$COUNT, 5, TEMP);
- L2PGNO[0] = TEMP;
- DLWRT(OFET, L2, 12);
- # DLWRT(OFET, L3, 6) #
- DLWRT(OFET, THRL, 1);
- LINE$COUNT = 6;
- END
- DLWRT(OFET, LINE, LSIZE);
- IF NOT OUPART
- THEN # OUTPUT A COMPLETE LINE #
- LINE$COUNT = LINE$COUNT + 1;
- END
- TERM
cdc/nos2.source/nam5871/dlwritc.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator