User Tools

Site Tools


cdc:nos2.source:nam5871:dlarep

DLAREP

Table Of Contents

  • [00010] PROC DLAREP
  • [00053] PROC DLDISDE
  • [00054] PROC DLDISO
  • [00055] PROC DLWRITC

Source Code

DLAREP.txt
  1. *DECK DLAREP
  2. USETEXT DLFPDEF
  3. USETEXT ABH
  4. USETEXT DEQCOM
  5. USETEXT DLTLC
  6. USETEXT NP$NWN1
  7. USETEXT OUTCDA
  8. USETEXT WRDPAIR
  9. USETEXT ZHRCD
  10. PROC DLAREP; # AIP DEBUG LOG FILE HEADER REPORT #
  11. *IF DEF,IMS
  12. #
  13. *
  14. *1DC DLAREP
  15. *
  16. * 1. PROC NAME AUTHOR DATE.
  17. * DLAREP S.KRULEVITCH 78/12/19
  18. *
  19. * 2. FUNCTIONAL DESCRIPTION.
  20. * FORMATS AIP DEBUG LOG FILE HEADERS.
  21. *
  22. * 3. METHOD USED.
  23. * SWITCH ON OPERATION CODE TO FORMAT DATA
  24. *
  25. * 4. ENTRY PARAMETERS.
  26. * ZHRCD - CONTAINS DEBUG LOG FILE ENTRY
  27. *
  28. * 5. EXIT PARAMETERS.
  29. * DLCC TEXT LENGTH IN CHARACTERS
  30. * TRUNC TEXT LENGTH IN CHARACTERS
  31. *
  32. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  33. * ABH DEQCOM DLFPDEF DLTLC
  34. * NP$DBA NP$DLA NP$NWNC OUTCDA WRDPAIR
  35. * NP$DBA NP$DLA OUTCDA WRDPAIR
  36. * ZHRCD
  37. *
  38. * 7. ROUTINES CALLED.
  39. * DLDISDE CONVERT FIELD TO DECIMAL DISPLAY
  40. * DLDISO CONVERT FIELD TO OCTAL DISPLAY
  41. * DLWRITC WRITE LINE TO CIO BUFFER
  42. *
  43. * 8. DAYFILE MESSAGES.
  44. * NONE.
  45. *
  46.  #
  47. *ENDIF
  48. #
  49.   EXTERNAL REFERENCES
  50. #
  51. XREF
  52. BEGIN
  53. PROC DLDISDE; # CONVERT FIELD TO DECIMAL DISPLAY #
  54. PROC DLDISO; # CONVERT FIELD TO OCTAL DISPLAY #
  55. PROC DLWRITC; # WRITE LINE TO CIO BUFFER #
  56. END
  57. #
  58.   COMMON VARIABLES
  59. #
  60. BASED ARRAY DBGLG P(2);
  61. *CALL NP$DBA
  62. BASED ARRAY DATLINE P(4);
  63. *CALL NP$DLA
  64. #
  65.   LOCAL VARIABLES
  66. #
  67. BEGIN
  68. #
  69.   ITEM DEFINITIONS
  70. #
  71. ITEM CHARWD C(WC); # TEMPORARY VARIABLE #
  72. ITEM I; # INDEX VARIABLE FOR TEXT #
  73. ITEM LINLEN; # LENGTH OF OUTPUT LINE #
  74. # #
  75. # ARRAY DEFINITIONS #
  76. # #
  77. ARRAY LINE1 P(7); # CHARACTER ARRAY FOR FORMATTING LINE 1 #
  78. BEGIN
  79. ITEM L1$NAME C(0, 0,10); # PROCEDURE NAME #
  80. ITEM L1$CALL C(1, 0, 6); # CALL ADDRESS #
  81. ITEM L1$FMT1 C(1,36, 4);
  82. ITEM L1$WRD1 C(1,0,WC);
  83. ITEM L1$FMT2 C(2, 0, 4);
  84. ITEM L1$CLN C(2,24, 6); # ACN OR ALN VALUE FOR GETS #
  85. ITEM L1$HAPT C(2,24, 6); # HEADER ADDRESS FOR PUTS #
  86. ITEM L1$WRD2 C(2,0,WC);
  87. ITEM L1$FMT3 C(3, 0, 7);
  88. ITEM L1$HAGT C(3,24, 6); # HEADER ADDRESS FOR GETS #
  89. ITEM L1$TAP1 C(3,42, 3); # TEXT ADDR FOR PUT (LEFT 3) #
  90. ITEM L1$NAPT C(3,42, 3); # NUMBER OF FRAGMENTS FOR PUTF #
  91. ITEM L1$WRD3 C(3,0,WC);
  92. ITEM L1$TAP2 C(4, 0,10); # TEXT ADDR FOR PUT (RIGHT 3) #
  93. ITEM L1$FMT4 C(4, 0, 8);
  94. ITEM L1$TAG1 C(4,36, 4); # TEXT ADDR FOR GET (LEFT 4) #
  95. ITEM L1$NAGT C(4,42, 3);
  96. ITEM L1$TAA1 C(4,48, 2); # TAA ADDR FOR PUTF (LEFT 2) #
  97. ITEM L1$WRD4 C(4,0,WC);
  98. ITEM L1$TAA2 C(5, 0,10); # TAA ADDR FOR PUTF (RIGHT 4) #
  99. ITEM L1$FMT5 C(5, 0,10);
  100. ITEM L1$TAG2 C(5, 0, 2); # TEXT ADDR FOR GET (RIGHT 2) #
  101. ITEM L1$TAA3 C(5,42, 3); # TAA ADDR FOR GETF (LEFT 3) #
  102. ITEM L1$WRD5 C(5, 0,WC);
  103. ITEM L1$TLMX C(6, 0,10); # TLMAX FOR GET #
  104. ITEM L1$TLEQ C(6, 0, 1); # INSERT = SIGN #
  105. ITEM L1$TAA4 C(6, 0,10); # TAA ADDR FOR GETF (RIGHT 3) #
  106. ITEM L1$WRD6 C(6, 0,WC);
  107. END
  108.  
  109. ARRAY MSGNO P(2);
  110. BEGIN
  111. ITEM MSG$FMT C(0,0,10)=[" MSG NO."];
  112. ITEM MSG$MCT C(1,0,6); # MSG$COUNT #
  113. ITEM MSG$TERM I(1,36,24)=[0];
  114. END
  115.  
  116. ARRAY HDRLINE P(9);
  117. BEGIN
  118. ITEM HL$FMT1 C(0, 0,10) = [" ABT = "];
  119. ITEM HL$ABT C(0,42, 2);
  120. ITEM HL$FMT2 C(1, 0,10) = [" ADR = "];
  121. ITEM HL$ADR C(1,36, 4);
  122. ITEM HL$FMT3 C(2, 0,10) = [" ABN = "];
  123. ITEM HL$ABN1 C(2,42, 3);
  124. ITEM HL$ABN2 C(3, 0, 3);
  125. ITEM HL$FMT4 C(3, 0,10) = [" ACT ="];
  126. ITEM HL$ACT C(4, 0, 2);
  127. ITEM HL$FMT5 C(4,12, 8) = [" STATUS"];
  128. ITEM HL$FMT6 C(5, 0,10) = [" = "];
  129. ITEM HL$ST1 U(5,18, 6);
  130. ITEM HL$ST2 U(5,24, 6);
  131. ITEM HL$ST3 U(5,30, 6);
  132. ITEM HL$ST4 U(5,36, 6);
  133. ITEM HL$ST5 U(5,42, 6);
  134. ITEM HL$ST6 U(5,48, 6);
  135. ITEM HL$ST7 U(5,54, 6);
  136. ITEM HL$ST8 U(6, 0, 6);
  137. ITEM HL$FMT7 C(6, 0,10) = [" TLC = "];
  138. ITEM HL$TLC C(7, 0,10);
  139. ITEM HL$FMT9 I(8, 0,WL) = [0];
  140. END
  141.  
  142. # HEADER BUFFER FOR BLOCK TYPE 4 (APPPN) #
  143. ARRAY HDRLINE2 P(9) ;
  144. BEGIN
  145. ITEM HL2$FMT1 C(0,0,10) = [" ABT = "] ;
  146. ITEM HL2$ABT C(0,42,2) ;
  147. ITEM HL2$FMT2 C(1,0,09) = [" DN = "] ;
  148. ITEM HL2$DN C(1,36,3) ;
  149. ITEM HL2$D1 C(1,54,1) = [" "] ;
  150. ITEM HL2$FMT3 C(2,0,9) = [" SN = "] ;
  151. ITEM HL2$SN C(2,36,3) ;
  152. ITEM HL2$D2 C(2,54,1) = [" "] ;
  153. ITEM HL2$FMT4 C(3,0,09) = [" CN = "] ;
  154. ITEM HL2$CN C(3,36,3) ;
  155. ITEM HL2$D3 C(3,54,1) = [" "] ;
  156. ITEM HL2$FMT5 C(4,0,09) = [" BT = "] ;
  157. ITEM HL2$BT C(4,36,3) ;
  158. ITEM HL2$D4 C(4,54,1) = [" "] ;
  159. ITEM HL2$FMT6 C(5,0,10) = [" ACT = "] ;
  160. ITEM HL2$ACT C(5,42,3) ;
  161. ITEM HL2$FMT7 C(6,0,10) = [" TLC = "] ;
  162. ITEM HL2$TLC C(7,0,10) ;
  163. ITEM HL2$FMT8 I(8,0,WL) = [0] ;
  164.  
  165. END
  166.  
  167. ARRAY HDRLINB P(9) ;
  168. BEGIN # HEADER LINE FOR NETLOG CALLS #
  169. ITEM HB$FIL1 C(0,0,60)= [" "];
  170. ITEM HB$FIL2 C(6,0,10)= [" TLW ="];
  171. ITEM HB$TLW C(7,0,10) ;
  172. ITEM HB$FIL3 I(8,0,60) = [0] ;
  173. END
  174.  
  175. ARRAY ONLINE1 P(7); # LOG ENTRY CHARACTER ARRAY - LINE 1 #
  176. BEGIN
  177. ITEM ON1$OP C(0, 0,10) = [" NETON ("];
  178. ITEM ON1$CAD C(1, 0, 6);
  179. ITEM ON1$RP C(1,36, 4) = [") "];
  180. ITEM ON1$FM1 C(2, 0,10) = [" ANAME = "];
  181. ITEM ON1$NAM C(3, 0,10);
  182. ITEM ON1$FM2 C(4, 0,10) = [" DATE ="];
  183. ITEM ON1$DAT C(5, 0,10);
  184. ITEM ON1$FM3 C(6, 0,10) = [" "];
  185. END
  186.  
  187. ARRAY ONLINE2 P(6); # LOG ENTRY CHARACTER ARRAY - LINE 2 #
  188. BEGIN
  189. ITEM ON2$FM1 C(0, 0,10) = [" NSUP ADD"];
  190. ITEM ON2$FM2 C(1, 0, 4) = ["R = "];
  191. ITEM ON2$NAD C(1,24, 6);
  192. ITEM ON2$FM3 C(2, 0,10) = [" MINACN ="];
  193. ITEM ON2$MIN C(3, 0, 5);
  194. ITEM ON2$FM4 C(3,30, 5) = [" MAX"];
  195. ITEM ON2$FM5 C(4, 0, 5) = ["ACN ="];
  196. ITEM ON2$MAX C(4,30, 5);
  197. ITEM ON2$FM6 I(5, 0,60) = [0];
  198. END
  199.  
  200. ARRAY DBGLOG P(7); # LOG NETDBG CALL MESSAGE CHARACTER ARRAY #
  201. BEGIN
  202. ITEM TX$DBG C(0, 0,10) = [" NETDBG ("];
  203. ITEM TX$CALL C(1, 0, 6);
  204. ITEM TX$RP C(1,36, 4) = [") "];
  205. ITEM TX$OPT1 C(2, 0,10) = [" OPT1 = "];
  206. ITEM TX$OPV1 U(2,54, 6);
  207. ITEM TX$OPT2 C(3, 0,10) = [" OPT2 = "];
  208. ITEM TX$OPV2 U(3,54, 6);
  209. ITEM TX$DATE C(4, 0,10) = [" DATE ="];
  210. ITEM TX$YMD C(5, 0,10);
  211. ITEM TX$ZERO C(6, 0,10) = [" "];
  212. END
  213.  
  214. ARRAY OFFLINE P(7); # LOG ENTRY CHARACTER ARRAY #
  215. BEGIN
  216. ITEM OFF$OP C(0, 0,10) = [" NETOFF ("];
  217. ITEM OFF$CAD C(1, 0, 6);
  218. ITEM OFF$FM1 C(1,36, 4) = [") "];
  219. ITEM OFF$FM2 C(2, 0,10) = [" DATE ="];
  220. ITEM OFF$DAT C(3, 0,10);
  221. ITEM OFF$FM3 C(4, 0,30) = [" "];
  222. END
  223.  
  224. ARRAY RSTLINE P(7); # LOG ENTRY FOR RESET WORKLIST #
  225. BEGIN
  226. ITEM RST$OP C(0, 0,10) = [" NETRR ("];
  227. ITEM RST$CAD C(1, 0, 6);
  228. ITEM RST$FM1 C(1,36, 4) = [") "];
  229. ITEM RST$FM2 C(2, 0,10) = [" DATE ="];
  230. ITEM RST$DAT C(3, 0,10);
  231. ITEM RST$FM3 C(4, 0,30) = [" "];
  232. END
  233.  
  234. BASED ARRAY ONLINE P(4);
  235. BEGIN
  236. ITEM ON$NSUP I(0,6,AL); # USER COMMUNICATION WORD #
  237. ITEM ON$CALL I(0,24,AL);
  238. ITEM ON$OPC I(0,54,6); # NETON OPCODE (=6) #
  239. ITEM ON$MIN I(1,0,WL); # MINACN #
  240. ITEM ON$MAX I(2,0,WL); # MAXACN #
  241. END # ONLINE #
  242.  
  243. # SWITCH DEFINITION #
  244. # #
  245. SWITCH NAMCALL RTRN,PUT,GET,GETL,RTRN,RTRN,ON,OFF,GETF,
  246. PUTF,GTFL,XFR,RST,LOG,RTRN,RTRN,RTRN,DBG;
  247.  
  248. #**********************************************************************#
  249. #
  250.   DLAREP EXECUTION STARTS HERE
  251. #
  252. # ZERO WORDS AT END OF CHARACTER ARRAY #
  253.  
  254. L1$WRD1[0] = " ";
  255. L1$WRD2[0] = " ";
  256. L1$WRD3[0] = " ";
  257. L1$WRD4[0] = " ";
  258. L1$WRD5[0] = " ";
  259. L1$WRD6[0] = " ";
  260. DLDISDE(OUMSGNO, 6,CHARWD); # CONVERT MESSAGE COUNT #
  261. MSG$MCT[0] = CHARWD;
  262.  
  263. # SWITCH ON OPERATION CODE FOR NAM PROCEDURE CALL #
  264.  
  265. P<DATLINE> = LOC(TEMPB1);
  266.  
  267. GOTO NAMCALL [DL$OPC[0]];
  268.  
  269. PUT:
  270. L1$NAME[0] = " NETPUT (";
  271.  
  272. # FORMAT TA PARAMETER FOR NETPUT #
  273.  
  274. L1$FMT3[0] = " TA =";
  275. DLDISO(DL$TA[0],6,CHARWD); # CONVERT TEXT ADDR TO DISPLAY #
  276. L1$TAP1[0] = C<0,3> CHARWD; # PUT TEXT ADDR IN OUTPUT LINE #
  277. L1$TAP2[0] = C<3,3> CHARWD;
  278. LINLEN = 7;
  279. GOTO FL11;
  280.  
  281. PUTF:
  282. L1$NAME[0] = " NETPUTF (";
  283.  
  284. # FORMAT NA PARAMETER FOR NETPUTF #
  285.  
  286. LTAA = DL$TL[0]; # NUMBER OF FRAGMENTS #
  287. L1$FMT3[0] = " NA =";
  288. DLDISDE(DL$TL[0],3,CHARWD); # CONVERT NA TO DISPLAY CODE #
  289. L1$NAPT[0] = C<0,3> CHARWD; # PUT NA INTO OUTPUT LINE #
  290.  
  291. # FORMAT TAA PARAMETER FOR NETPUTF #
  292.  
  293. L1$FMT4[0] = " TAA =";
  294. DLDISO(DL$TA[0],6,CHARWD); # CONVERT TAA TO DISPLAY CODE #
  295. L1$TAA1[0] = C<0,2> CHARWD; # PUT TAA INTO OUTPUT LINE #
  296. L1$TAA2[0] = C<2,4> CHARWD;
  297. LINLEN = 7;
  298.  
  299. FL11:
  300.  
  301. # FORMAT HA PARAMETER FOR NETPUT AND NETPUTF #
  302.  
  303. L1$FMT1[0] = ") ";
  304. DLDISO(DL$HA[0],6,CHARWD); # CONVERT HA TO DISPLAY #
  305. L1$HAPT[0] = CHARWD; #PUT HEADER ADDR IN OUTPUT LINE#
  306. L1$FMT2[0] = "HA =";
  307. GOTO FL110;
  308.  
  309. GET:
  310. L1$NAME[0] = " NETGET (";
  311. L1$FMT2[0] = "CN =";
  312. GOTO FL12;
  313.  
  314. GETL:
  315. L1$NAME[0] = " NETGETL (";
  316. L1$FMT2[0] = "LN =";
  317.  
  318. FL12:
  319.  
  320. # FORMAT MESSAGE TEXT ADDRESS FOR NETGET AND NETGETL #
  321.  
  322. L1$FMT4[0] = " TA = ";
  323. DLDISO(DL$TA[0],6,CHARWD); # CONVERT TA TO DISPLAY #
  324. L1$TAG1[0] = C<0,4> CHARWD; # PUT TEXT ADDR IN OUTPUT LINE #
  325. L1$FMT5[0] = " TLMAX ";
  326. L1$TAG2[0] = C<4,2> CHARWD; # OUTPUT LAST 2 CHAR OF TA #
  327.  
  328. # FORMAT TEXT LENGTH MAXIMUM FOR NETGET AND NETGETL #
  329.  
  330. DLDISDE(DL$TL[0],5,CHARWD); # CONVERT TLMAX TO DISPLAY #
  331. L1$TLMX[0] = C<0,5> CHARWD; #PUT TLMAX VALUE IN OUTPUT LINE#
  332. L1$TLEQ[0] = "="; # PUT EQUAL SIGN IN OUTPUT #
  333. LINLEN = 7;
  334. GOTO FL19;
  335.  
  336. GETF:
  337. L1$NAME[0] = " NETGETF (";
  338. L1$FMT2[0] = "CN =";
  339. GOTO FL18;
  340.  
  341. GTFL:
  342. L1$NAME[0] = " NETGTFL (";
  343. L1$FMT2[0] = "LN =";
  344.  
  345. FL18:
  346.  
  347. # FORMAT NUMBER OF FRAGMENTS FOR NETGETF AND NETGTFL #
  348.  
  349. LTAA = DL$TL[0]; # NUMBER OF FRAGMENTS #
  350. L1$FMT4[0] = " NA = ";
  351. DLDISDE(DL$TL[0],3,CHARWD); # CONVERT NA TO DISPLAY CODE #
  352. L1$NAGT[0] = C<0,3> CHARWD; # PUT NA VALUE IN OUTPUT LINE #
  353.  
  354. # FORMAT TAA PARAMETER FOR NETGETF AND NETGTFL #
  355.  
  356. L1$FMT5[0] = " TAA = ";
  357. DLDISO(DL$TA[0],6,CHARWD); # CONVERT TAA VALUE TO DISPLAY #
  358. L1$TAA3[0] = C<0,3> CHARWD; # PUT TAA VALUE IN OUTPUT LINE #
  359. L1$TAA4[0] = C<3,3> CHARWD;
  360. LINLEN = 7;
  361.  
  362. FL19:
  363. L1$FMT1[0] = ") A";
  364.  
  365. # FORMAT ACN OR ALN VALUE #
  366.  
  367. DLDISDE(DL$ADR[0],4,CHARWD); # CONVERT CONNECTION/LIST NO #
  368. L1$CLN[0] = C<0,4> CHARWD; # PUT CONNECT/LINE NO IN OUTPUT#
  369.  
  370. # FORMAT HA PARAMETER #
  371.  
  372. L1$FMT3[0] = "HA =";
  373. DLDISO(DL$HA[0],6,CHARWD); # CONVERT HA TO DISPLAY #
  374. L1$HAGT[0] = C<0,6> CHARWD; #PUT HEADER ADDR IN OUTPUT LINE#
  375.  
  376. FL110:
  377. DLDISO(DL$CALL[0],6,CHARWD); # CONVERT CALL ADDR TO DISPLAY #
  378. L1$CALL = C<0,6>CHARWD; # PUT CALL ADDR IN OUTPUT LINE #
  379.  
  380. OUPART = TRUE;
  381. DLWRITC(LINE1,LINLEN); # OUTPUT LINE 1 FOR LOG ENTRY #
  382. OUPART = FALSE;
  383. DLWRITC(MSGNO,2); # OUTPUT MESSAGE NUMBER #
  384.  
  385.  
  386. # CONVERT HEADER FIELDS TO DISPLAY CODE. #
  387. P<ABH> = P<DATLINE> + 3;
  388.  
  389. IF ABHABT[0] EQ APPPN
  390. THEN
  391. BEGIN # PROCESS FOR BT 4 #
  392. DLDISDE(ABHABT[0],2,CHARWD) ;
  393. HL2$ABT[0] = C<0,2>CHARWD ;
  394.  
  395. DLDISDE(ABHDN[0],3,CHARWD) ;
  396. HL2$DN[0] = C<0,3>CHARWD ;
  397.  
  398. DLDISDE(ABHSN[0],3,CHARWD) ;
  399. HL2$SN[0] = C<0,3>CHARWD ;
  400.  
  401. DLDISDE(ABHCN[0],3,CHARWD) ;
  402. HL2$CN[0] = C<0,3>CHARWD ;
  403.  
  404. DLDISDE(ABHBT[0],2,CHARWD) ;
  405. HL2$BT[0] = C<0,2>CHARWD ;
  406.  
  407. DLDISDE(ABHACT[0],3,CHARWD) ;
  408. HL2$ACT[0] = C<0,3>CHARWD ;
  409.  
  410. DLDISDE(ABHTLC[0],4,CHARWD) ;
  411. HL2$TLC[0] = C<0,4>CHARWD ;
  412.  
  413. DLWRITC(HDRLINE2,9) ;
  414. END # PROCESS FOR BT 4 #
  415. ELSE
  416. BEGIN # PROCESS FOR OTHER BT #
  417.  
  418. DLDISDE(ABHABT[0],2,CHARWD); # CONVERT ABT TO DISPLAY CODE #
  419. HL$ABT[0] = C<0,2> CHARWD; # PUT IN OUTPUT LINE #
  420.  
  421. DLDISDE(ABHADR[0],4,CHARWD); # CONVERT ADR TO DISPLAY CODE #
  422. HL$ADR[0] = C<0,4> CHARWD; # PUT ADR IN OUTPUT LINE #
  423.  
  424. DLDISDE(ABHABN[0],6,CHARWD); # CONVERT ABN TO DISPLAY #
  425. HL$ABN1[0] = C<0,3> CHARWD; # PUT ABN IN OUTPUT LINE #
  426. HL$ABN2[0] = C<3,3> CHARWD;
  427.  
  428. DLDISDE(ABHACT[0],2,CHARWD); # CONVERT ACT TO DISPLAY CODE #
  429. HL$ACT[0] = C<0,2> CHARWD; # PUT ACT IN OUTPUT LINE #
  430.  
  431. DLDISDE(ABHTLC[0],4,CHARWD); # CONVERT TLC TO DISPLAY CODE #
  432. HL$TLC[0] = C<0,4> CHARWD; # PUT TLC IN OUTPUT LINE #
  433.  
  434. # CONVERT VALUE OF EACH STATUS BIT AND FORMAT INTO OUTPUT LINE #
  435.  
  436. HL$ST1[0] = ABHIBU[0] + O"33";
  437. HL$ST2[0] = ABHB41[0] + O"33";
  438. HL$ST3[0] = ABHB42[0] + O"33";
  439. HL$ST4[0] = ABHB43[0] + O"33";
  440. HL$ST5[0] = ABHNFE[0] + O"33";
  441. HL$ST6[0] = ABHXPT[0] + O"33";
  442. HL$ST7[0] = ABHCAN[0] + O"33";
  443. HL$ST8[0] = ABHBIT[0] + O"33";
  444.  
  445. # WRITE HEADER LINE FOR MESSAGE BEING LOGGED TO FILE OUTPUT #
  446.  
  447. DLWRITC(HDRLINE,9);
  448. END # PROCESS FOR OTHER BT #
  449. IF ABHABT[0] EQ 0
  450. THEN
  451. DLCC = 0 ;
  452. ELSE
  453. DLCC = ABHTLC[0] ;
  454. TRUNC = (2*ABHTLC[0]+NW$ROUND[ABHACT[0]])/NW$FACT[ABHACT[0]];
  455. CT = ABHACT[0]; # SAVE ACT FOR PROCEDURE DLDIS #
  456.  
  457. GOTO RTRN;
  458.  
  459. ON:
  460. P<ONLINE> = P<DATLINE> + 1;
  461. DLDISO(ON$CALL,6,CHARWD);
  462. ON1$CAD[0] = CHARWD;
  463.  
  464. ON1$NAM[0] = L1NAME; # NAME FROM ENTRY PARAMETER #
  465.  
  466. ON1$DAT[0] = C<0,9>SDTYYMMDD;
  467.  
  468. OUPART = TRUE;
  469. DLWRITC(ONLINE1,7); # OUTPUT FIRST LINE OF LOG ENTRY#
  470. OUPART = FALSE;
  471. DLWRITC(MSGNO,2); # OUTPUT MESSAGE NUMBER #
  472.  
  473. # FORMAT SECOND LINE OF LOG ENTRY FOR NETON CALL #
  474.  
  475. DLDISO(ON$NSUP,6,CHARWD); # CONVERT NSUP ADDR TO DISPLAY #
  476. ON2$NAD[0] = CHARWD; # PUT NSUP ADDRESS IN OUTPUT LINE #
  477.  
  478. DLDISDE(ON$MIN,5,CHARWD); # CONVERT MINACN TO DISPLAY #
  479. ON2$MIN[0] = C<0,5> CHARWD; # PUT MINACN IN OUTPUT LINE #
  480.  
  481. DLDISDE(ON$MAX,5,CHARWD); # CONVERT MAXACN TO DISPLAY #
  482. ON2$MAX[0] = C<0,5> CHARWD; # PUT MAXACN IN OUTPUT LINE #
  483.  
  484. DLWRITC(ONLINE2,6); # OUTPUT SECOND LINE OF NETON #
  485.  
  486. GOTO RTRN;
  487.  
  488. XFR:
  489. GOTO RTRN ;
  490. DBG:
  491. P<DBGLG> = P<DATLINE>;
  492. DLDISO(DB$CAL,6,CHARWD);
  493. TX$CALL[0] = CHARWD; # PUT CALL ADDR IN OUTPUT LINE #
  494. IF DB$SMF # CONVERT OPTIONS TO DISPLAY CODE #
  495. THEN
  496. TX$OPV1[0] = O"33";
  497. ELSE
  498. TX$OPV1[0] = O"34";
  499. IF DB$DMF
  500. THEN
  501. TX$OPV2[0] = O"33";
  502. ELSE
  503. TX$OPV2[0] = O"34";
  504. TX$YMD[0] = L2DATE[0]; # PUT DATE IN OUTPUT LINE #
  505.  
  506. OUPART = TRUE;
  507. DLWRITC(DBGLOG,7); # OUTPUT MESSAGE #
  508. OUPART = FALSE;
  509. DLWRITC(MSGNO,2); # OUTPUT MESSAGE NUMBER #
  510. GOTO RTRN;
  511.  
  512. LOG:
  513. L1$NAME[0] = " NETLOG ("; # SET PROCEDURE NAME #
  514. DLDISO(DL$CALL[0],6,CHARWD);
  515. L1$CALL = CHARWD; # SET PROCEDURE CALL ADDRESS #
  516. L1$FMT1 = ")";
  517. L1$WRD2[0] = " "; # CLEAR LINES #
  518. L1$WRD3[0] = " ";
  519. L1$WRD4[0] = " ";
  520. L1$WRD5[0] = " ";
  521. L1$WRD6[0] = " ";
  522. LINLEN = 7;
  523. DLCC = DL$SIZE[0]; # SET TEXT LENGTH #
  524. TRUNC = DLCC;
  525.  
  526. OUPART = TRUE; # OUTPUT PART OF LINE #
  527. DLWRITC(LINE1,LINLEN); # OUTPUT LINE 1 FOR LOG ENTRY #
  528. OUPART = FALSE; # OUTPUT REST OF THE LINE #
  529. DLWRITC(MSGNO,2); # OUTPUT MESSAGE NUMBER #
  530.  
  531. DLDISO(DL$SIZE[0],3,CHARWD); # OUTPUT TLW PART #
  532. HB$TLW = CHARWD;
  533. DLWRITC(HDRLINB,8);
  534. GOTO RTRN;
  535.  
  536.  
  537. OFF:
  538. DLDISO(DL$CALL[0],6,CHARWD); # CONVERT CALL ADDR TO DISPLAY #
  539. OFF$CAD[0] = C<0,6> CHARWD; # PUT CALL ADDRESS IN OUTPUT LINE #
  540.  
  541. OFF$DAT[0] = L2DATE[0]; # PUT DISPLAY CODE DATE IN OUTPUT LINE #
  542.  
  543. OUPART = TRUE;
  544. DLWRITC(OFFLINE,7); # OUTPUT NETOFF #
  545. OUPART = FALSE;
  546. DLWRITC(MSGNO,2); # OUTPUT MESSAGE NUMBER #
  547. GOTO RTRN;
  548. RST:
  549. DLDISO(DL$CALL[0],6,CHARWD); # CONVERT CALL ADDR TO DISPLAY #
  550. RST$CAD[0] = C<0,6> CHARWD; # PUT CALL ADDRESS IN OUTPUT LINE #
  551.  
  552. RST$DAT[0] = L2DATE[0]; # PUT DISPLAY CODE DATE IN OUTPUT LINE #
  553.  
  554. OUPART = TRUE;
  555. DLWRITC(RSTLINE,7); # OUTPUT NETRSET #
  556. OUPART = FALSE;
  557. DLWRITC(MSGNO,2); # OUTPUT MESSAGE NUMBER #
  558.  
  559. GOTO RTRN;
  560.  
  561.  
  562. RTRN:
  563. RETURN;
  564. END # DLAREP #
  565. TERM
cdc/nos2.source/nam5871/dlarep.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator