User Tools

Site Tools


ibm:vm370-lib:macro:sysjrl.macro_src

SYSJRL Source

References

Source Listing

SYSJRL.MACRO.txt
  1. MACRO 00001000
  2. SYSJRL &JOURNAL=NO, +00002000
  3. &STQUERY=NO, +00003000
  4. &LOGUID=, +00004000
  5. &LOGLMT=, +00005000
  6. &LNKUID=, +00006000
  7. &LNKLMT=, +00007000
  8. &PSUPRS=NO 00008000
  9. GBLC &SY$JRL 00009000
  10. &SY$JRL SETC 'HERE' ANNOUNCE PRESENCE TO SYSLOCS 00010000
  11. LCLA &TEMP 00011000
  12. LCLB &FAIL 00012000
  13. LCLC &PLOG,&PLNK 00013000
  14. LCLC &PLOL(3),&PLNL(3) 00014000
  15. &FAIL SETB 0 00015000
  16. AIF (NOT (('&JOURNAL' EQ 'NO') AND ('&STQUERY' EQ 'YES'))).J+00016000
  17. 010 00017000
  18. MNOTE 8,'STQUERY=YES VALID ONLY WITH JOURNAL=YES.' 00018000
  19. &FAIL SETB 1 00019000
  20. .J010 AIF (NOT (('&JOURNAL' EQ 'NO') AND (T'&LOGUID NE 'O'))).J020 00020000
  21. MNOTE 8,'LOGUID VALID ONLY WITH JOURNAL=YES.' 00021000
  22. &FAIL SETB 1 00022000
  23. .J020 AIF (NOT (('&JOURNAL' EQ 'NO') AND (T'&LOGLMT NE 'O'))).J030 00023000
  24. MNOTE 8,'LOGLMT VALID ONLY WITH JOURNAL=YES.' 00024000
  25. &FAIL SETB 1 00025000
  26. .J030 AIF (NOT (('&JOURNAL' EQ 'NO') AND (T'&LNKUID NE 'O'))).J040 00026000
  27. MNOTE 8,'LNKUID VALID ONLY WITH JOURNAL=YES.' 00027000
  28. &FAIL SETB 1 00028000
  29. .J040 AIF (NOT (('&JOURNAL' EQ 'NO') AND (T'&LNKLMT NE 'O'))).J050 00029000
  30. MNOTE 8,'LNKLMT VALID ONLY WITH JOURNAL=YES.' 00030000
  31. &FAIL SETB 1 00031000
  32. .* NOW VALIDATE AND SUPPLY DEFAULTS WHERE NECESSARY. 00032000
  33. .J050 AIF ('&JOURNAL' EQ 'YES' OR '&JOURNAL' EQ 'NO').J060 00033000
  34. MNOTE 8,'JOURNAL=&JOURNAL IS INVALID. ''YES'' OR ''NO'' IS REQ+00034000
  35. UIRED.' 00035000
  36. &FAIL SETB 1 00036000
  37. .J060 AIF ('&STQUERY' EQ 'YES' OR '&STQUERY' EQ 'NO').J070 00037000
  38. MNOTE 8,'STQUERY=&STQUERY IS INVALID. ''YES'' OR ''NO'' IS REQ+00038000
  39. UIRED.' 00039000
  40. &FAIL SETB 1 00040000
  41. .J070 AIF ('&PSUPRS' EQ 'YES' OR '&PSUPRS' EQ 'NO').J080 00041000
  42. MNOTE 8,'PSUPRS=&PSUPRS IS INVALID. ''YES'' OR ''NO'' IS REQUI+00042000
  43. RED.' 00043000
  44. &FAIL SETB 1 00044000
  45. .J080 ANOP 00045000
  46. &PLOG SETC '&LOGUID' 00046000
  47. AIF (T'&LOGUID NE 'O').J090 00047000
  48. &PLOG SETC 'OPERATOR' 00048000
  49. AGO .J100 00049000
  50. .J090 AIF (K'&LOGUID NE 0 AND K'&LOGUID LE 8).J100 00050000
  51. MNOTE 8,'THE LOGUID MUST BE 1-8 CHARACTERS.' 00051000
  52. &FAIL SETB 1 00052000
  53. .J100 ANOP 00053000
  54. &PLNK SETC '&LNKUID' 00054000
  55. AIF (T'&LNKUID NE 'O').J110 00055000
  56. &PLNK SETC 'OPERATOR' 00056000
  57. AGO .J120 00057000
  58. .J110 AIF (K'&LNKUID NE 0 AND K'&LNKUID LE 8).J120 00058000
  59. MNOTE 8,'THE LNKUID MUST BE 1-8 CHARACTERS.' 00059000
  60. &FAIL SETB 1 00060000
  61. .J120 ANOP 00061000
  62. &PLOL(1) SETC '&LOGLMT(1)' 00062000
  63. &PLOL(2) SETC '&LOGLMT(2)' 00063000
  64. &PLOL(3) SETC '&LOGLMT(3)' 00064000
  65. AIF (T'&LOGLMT NE 'O').J130 00065000
  66. &PLOL(1) SETC '2' 00066000
  67. &PLOL(2) SETC '3' 00067000
  68. &PLOL(3) SETC '4' 00068000
  69. AGO .J170 00069000
  70. .J130 AIF (N'&LOGLMT EQ 3).J140 00070000
  71. MNOTE 8,'LOGLMT MUST BE SPECIFIED AS THREE VALUES.' 00071000
  72. &FAIL SETB 1 00072000
  73. .J140 ANOP 00073000
  74. &TEMP SETA &LOGLMT(1) 00074000
  75. AIF (NOT (&TEMP LT 0 OR &TEMP GT 255)).J150 00075000
  76. MNOTE 8,'THE FIRST LOGLMT VALUE MUST BE BETWEEN 0 AND 255 INCL+00076000
  77. USIVE.' 00077000
  78. &FAIL SETB 1 00078000
  79. .J150 ANOP 00079000
  80. &TEMP SETA &LOGLMT(2) 00080000
  81. AIF (NOT (&TEMP LT 0 OR &TEMP GT 255)).J160 00081000
  82. MNOTE 8,'THE SECOND LOGLMT VALUE MUST BE BETWEEN 0 AND 255 INC+00082000
  83. LUSIVE.' 00083000
  84. &FAIL SETB 1 00084000
  85. .J160 ANOP 00085000
  86. &TEMP SETA &LOGLMT(3) 00086000
  87. AIF (NOT (&TEMP LT 1 OR &TEMP GT 255)).J170 00087000
  88. MNOTE 8,'THE THIRD LOGLMT VALUE MUST BE BETWEEN 1 AND 255 INCL+00088000
  89. USIVE.' 00089000
  90. &FAIL SETB 1 00090000
  91. .J170 ANOP 00091000
  92. &PLNL(1) SETC '&LNKLMT(1)' 00092000
  93. &PLNL(2) SETC '&LNKLMT(2)' 00093000
  94. &PLNL(3) SETC '&LNKLMT(3)' 00094000
  95. AIF (T'&LNKLMT NE 'O').J180 00095000
  96. &PLNL(1) SETC '2' 00096000
  97. &PLNL(2) SETC '5' 00097000
  98. &PLNL(3) SETC '10' 00098000
  99. AGO .J220 00099000
  100. .J180 AIF (N'&LNKLMT EQ 3).J190 00100000
  101. MNOTE 8,'LNKLMT MUST BE SPECIFIED AS THREE VALUES.' 00101000
  102. &FAIL SETB 1 00102000
  103. .J190 ANOP 00103000
  104. &TEMP SETA &LNKLMT(1) 00104000
  105. AIF (NOT (&TEMP LT 0 OR &TEMP GT 255)).J200 00105000
  106. MNOTE 8,'THE FIRST LNKLMT VALUE MUST BE BETWEEN 0 AND 255 INCL+00106000
  107. USIVE.' 00107000
  108. &FAIL SETB 1 00108000
  109. .J200 ANOP 00109000
  110. &TEMP SETA &LNKLMT(2) 00110000
  111. AIF (NOT (&TEMP LT 0 OR &TEMP GT 255)).J210 00111000
  112. MNOTE 8,'THE SECOND LNKLMT VALUE MUST BE BETWEEN 0 AND 255 INC+00112000
  113. LUSIVE.' 00113000
  114. &FAIL SETB 1 00114000
  115. .J210 ANOP 00115000
  116. &TEMP SETA &LNKLMT(3) 00116000
  117. AIF (NOT (&TEMP LT 1 OR &TEMP GT 255)).J220 00117000
  118. MNOTE 8,'THE THIRD LNKLMT VALUE MUST BE BETWEEN 1 AND 255 INCL+00118000
  119. USIVE.' 00119000
  120. &FAIL SETB 1 00120000
  121. .J220 AIF (NOT &FAIL).J300 00121000
  122. MEXIT 00122000
  123. .J300 JPSCBLOK LOGONJ=&JOURNAL, +00123000
  124. LINKJ=&JOURNAL, +00124000
  125. LINKJI=&JOURNAL, +00125000
  126. JRLSQ=&STQUERY, +00126000
  127. LOGU=&PLOG, +00127000
  128. LOGAR=&PLOL(1), +00128000
  129. LOGMS=&PLOL(2), +00129000
  130. LOGDS=&PLOL(3), +00130000
  131. LNKU=&PLNK, +00131000
  132. LNKAR=&PLNL(1), +00132000
  133. LNKMS=&PLNL(2), +00133000
  134. LNKDS=&PLNL(3), +00134000
  135. MLOG=&PSUPRS, +00135000
  136. MLINK=&PSUPRS 00136000
  137. MEND 00137000
ibm/vm370-lib/macro/sysjrl.macro_src.txt ยท Last modified: 2023/08/06 13:38 by Site Administrator