User Tools

Site Tools


ibm:vm370-lib:macro:namesys.macro_src

NAMESYS Source

References

Source Listing

NAMESYS.MACRO.txt
  1. MACRO 00004000
  2. &LABEL NAMESYS &SYSNAME=,&SYSSIZE=,&VSYSRES=, X00005000
  3. &VSYSADR=,&SYSCYL=,&SYSVOL=,&SYSSTRT=,&SYSPGCT=, X00006000
  4. &PROTECT=,&SYSPGNM=,&SYSHRSG= 00007000
  5. GBLA &SW 00008000
  6. LCLA &PCT,&SCT,&A,&B,&K2,&K3,&K4(16),&K5 00009000
  7. LCLA &T1,&T2,&T3,&T4 00009100
  8. LCLC &LOCTR 00009200
  9. LCLC &CSIZE,&C1 00010000
  10. LCLA &SEG,&SEGB(78),&SEGE(78),&S @VA11206 00010010
  11. DMKSNTBL CSECT 00011100
  12. AIF ('&SW' NE '1').BEG 00012100
  13. ORG *-4 00015000
  14. .BEG ANOP 00016000
  15. &SW SETA 1 00016500
  16. S&SYSNDX EQU * 00017000
  17. DC AL4(E&SYSNDX-S&SYSNDX) DISPLACEMENT TO NEXT ENT. 00018000
  18. AIF ('&SYSSIZE' EQ '').SIZERR 00019000
  19. &A SETA 1 00020000
  20. &B SETA K'&SYSSIZE 00021000
  21. .SZLOOP ANOP 00022000
  22. AIF ('&SYSSIZE'(&A,1) EQ 'K').S1 00023000
  23. &A SETA &A+1 00024000
  24. AIF ('&A' GT '&B').SIZERR 00025000
  25. AGO .SZLOOP 00026000
  26. .S1 ANOP 00027000
  27. &A SETA &A-1 00028000
  28. &CSIZE SETC '&SYSSIZE'(1,&A) 00029000
  29. DC AL4(&CSIZE*1024) 00030000
  30. AIF ('&SYSNAME' EQ '').NAMERR 00031000
  31. &A SETA 1 00032000
  32. &B SETA K'&SYSNAME 00033000
  33. AIF (&B GT 3).NAMOK 00034000
  34. .NAMLOOP ANOP 00035000
  35. AIF ('&SYSNAME'(&A,1) GT 'F').NAMOK 00036000
  36. &A SETA &A+1 00037000
  37. AIF ('&A' GT '&B').NAMER1 00038000
  38. AGO .NAMLOOP 00039000
  39. .NAMOK ANOP 00040000
  40. DC CL8'&SYSNAME' SYSTEM NAME 00041000
  41. AIF ('&VSYSADR' NE 'IGNORE').VLDRES 00042100
  42. DC XL6'FFFFFFFFFFFF' VOLUME NOT REQUIRED ONLINE 00042200
  43. AGO .SKIPRES 00042300
  44. .VLDRES ANOP 00042400
  45. AIF ('&VSYSRES' EQ '').VSYSERR 00042500
  46. DC CL6'&VSYSRES' VOLUME SERIAL CONTAINING VSYSRES 00042600
  47. .SKIPRES ANOP 00042700
  48. AIF ('&VSYSADR' EQ '').VADRERR 00042800
  49. AIF ('&VSYSADR' NE 'IGNORE').VLDADR 00042900
  50. DC X'FFFF' NOT REQUIRED ONLINE(VSYSRES) 00043000
  51. AGO .SKIPADR 00043100
  52. .VLDADR ANOP 00043200
  53. DC XL2'&VSYSADR' VIRTUAL ADDRESS OF VSYSRES 00043300
  54. .SKIPADR ANOP 00043400
  55. AIF ('&SYSVOL' EQ '').SVOLERR 00043500
  56. DC CL6'&SYSVOL' VOLUME CONTAINING SAVED SYSTEM 00043600
  57. AIF ('&VSYSADR' NE 'IGNORE').VLDCYL 00043700
  58. DC XL2'FFFF' VOLUME NOT REQUIRED ONLINE 00043800
  59. AGO .SKIPCYL 00043900
  60. .VLDCYL ANOP 00044000
  61. AIF ('&SYSCYL' EQ '').CYLERR 00044100
  62. DC AL2(&SYSCYL) CYLINDER DISPLACEMENT FOR VSYSRES 00044200
  63. .SKIPCYL ANOP 00044300
  64. AIF ('&SYSSTRT' EQ '').STRTERR 00050000
  65. &A SETA 1 00051000
  66. DC AL2(&SYSSTRT(&A)) CYLINDER 00052000
  67. &A SETA &A+1 00053000
  68. AIF ('&SYSSTRT(&A)' EQ '0').PERR 00054000
  69. DC AL1(&SYSSTRT(&A)) PAGE NUMBER 00055000
  70. DC AL1(0) 00056000
  71. &T4 SETA 0 00057100
  72. AIF ('&SYSPGCT' EQ '').NOPGCT 00057200
  73. &T4 SETA &SYSPGCT 00057300
  74. .NOPGCT ANOP 00057400
  75. X&SYSNDX DC AL4(&T4) NUMBER OF SAVED PAGES 00057500
  76. &LOCTR SETC 'X'.'&SYSNDX' 00057600
  77. AIF ('&SYSPGNM' EQ '').PGNMERR 00059000
  78. AIF ('&SYSPGNM'(1,1) EQ '(').PARMX1 00059100
  79. MNOTE 8,'(SYSPGNM) OPERAND NOT ENCLOSED WITHIN PARENTHESES' 00059200
  80. .PARMX1 ANOP 00059300
  81. &PCT SETA N'&SYSPGNM NUMBER OF ENTRIES 00060000
  82. &K2 SETA 1 00061000
  83. .Q1 ANOP 00062000
  84. &K4(&K2) SETA K'&SYSPGNM(&K2) 00063000
  85. AIF ('&K2' EQ '&PCT').Q2 00064000
  86. &K2 SETA &K2+1 00065000
  87. AGO .Q1 00066000
  88. .Q2 ANOP 00067000
  89. DC AL2(&PCT) NUMBER OF ENTRIES 00068000
  90. AIF ('&PROTECT' EQ '').NOPROCT 00068100
  91. AIF ('&PROTECT' EQ 'ON').NOPROCT 00068150
  92. AIF ('&PROTECT' NE 'OFF').PROTERR 00068200
  93. DC AL1(0) RESERVED 00068225
  94. DC AL1(128) NAMED SYSTEM FLAG 00068250
  95. AGO .BLDPGNM 00068300
  96. .NOPROCT ANOP 00068350
  97. DC AL1(0) RESERVED 00068375
  98. DC AL1(0) NAMED SYSTEM FLAG 00068400
  99. .BLDPGNM ANOP 00068450
  100. DS 0F 00069000
  101. &K2 SETA 1 00070000
  102. .Q3 ANOP 00071000
  103. &K3 SETA 1 00072000
  104. .Q4 ANOP 00073000
  105. AIF ('&SYSPGNM(&K2)'(&K3,1) EQ '-').Q5 00074000
  106. AIF ('&K3' EQ '&K4(&K2)').SING 00075000
  107. &K3 SETA &K3+1 00076000
  108. AGO .Q4 00077000
  109. .SING ANOP 00078000
  110. &C1 SETC '&SYSPGNM(&K2)' 00079000
  111. &SEG SETA &C1 @VA11206 00079010
  112. &SEG SETA &SEG/16 @VA11206 00079020
  113. &SEGB(&K2) SETA &SEG @VA11206 00079030
  114. &SEGE(&K2) SETA &SEG @VA11206 00079040
  115. DC 2AL2(&C1) SINGLE PAGE 00080000
  116. &T3 SETA &T3+1 00080100
  117. AGO .NXTIT 00081000
  118. .Q5 ANOP 00082000
  119. &K5 SETA &K3-1 00083000
  120. &C1 SETC '&SYSPGNM(&K2)'(1,&K5) 00084000
  121. &SEG SETA &C1 @VA11206 00084010
  122. &SEGB(&K2) SETA &SEG/16 @VA11206 00084020
  123. DC AL2(&C1) START PAGE NUMBER 00085000
  124. &T1 SETA &C1 00085100
  125. &K5 SETA &K4(&K2)-&K3 00086000
  126. &K3 SETA &K3+1 00087000
  127. &C1 SETC '&SYSPGNM(&K2)'(&K3,&K5) 00088000
  128. &SEG SETA &C1 @VA11206 00088010
  129. &SEGE(&K2) SETA &SEG/16 @VA11206 00088020
  130. DC AL2(&C1) END PAGE NUMBER 00089000
  131. &T2 SETA &C1+1 00089100
  132. &T3 SETA &T2-&T1+&T3 00089200
  133. .NXTIT ANOP 00090000
  134. AIF ('&K2' EQ '&PCT').Q6 00091000
  135. &K2 SETA &K2+1 00092000
  136. AGO .Q3 00093000
  137. .Q6 ANOP 00094000
  138. &A SETA 1 00095000
  139. &B SETA 1 00096000
  140. AIF ('&T4' EQ '&T3').OKPGCT 00096100
  141. ORG &LOCTR 00096200
  142. DC AL4(&T3) NUMBER OF SAVED PAGES 00096300
  143. ORG 00096450
  144. AIF ('&SYSPGCT' EQ '').OKPGCT 00096500
  145. AIF ('&SYSPGCT' EQ '&T3').OKPGCT 00096600
  146. MNOTE 4,'(SYSPGCT) NOT EQUAL TO NUMBER OF SAVED PAGES' 00096700
  147. MNOTE *,'NUMBER OF SAVED PAGES HAS BEEN SET TO &T3' 00096800
  148. .OKPGCT ANOP 00096900
  149. AIF ('&SYSHRSG' EQ '').NOSEG 00097000
  150. AIF ('&SYSHRSG'(1,1) EQ '(').PARMX2 00097100
  151. MNOTE 8,'(SYSHRSG) OPERAND NOT ENCLOSED WITHIN PARENTHESES' 00097200
  152. .PARMX2 ANOP 00097300
  153. &SCT SETA N'&SYSHRSG 00098000
  154. DC AL2(&SCT) 00099000
  155. .SEGLOOP ANOP 00100000
  156. AIF ('&B' GT '&SCT').END 00101000
  157. &C1 SETC '&SYSHRSG(&A)' @VA11206 00101005
  158. &SEG SETA &C1 @VA11206 00101010
  159. &S SETA 1 @VA11206 00101015
  160. .SEGCK ANOP 00101020
  161. AIF (&S GT &PCT).SEGERR @VA11206 00101025
  162. AIF (&SEG LT &SEGB(&S)).SEGINCR @VA11206 00101030
  163. AIF (&SEG GT &SEGE(&S)).SEGINCR @VA11206 00101035
  164. AGO .SEGGD @VA11206 00101040
  165. .SEGINCR ANOP 00101045
  166. &S SETA &S+1 @VA11206 00101050
  167. AGO .SEGCK @VA11206 00101055
  168. .SEGERR ANOP 00101060
  169. MNOTE 12,'(SYSHRSG) NOT WITHIN (SYSPGNM) RANGE' @VA11206 00101065
  170. .SEGGD ANOP 00101070
  171. DC AL1(&SYSHRSG(&A)) 00102000
  172. &A SETA &A+1 00103000
  173. &B SETA &B+1 00104000
  174. AGO .SEGLOOP 00105000
  175. .NOSEG DC AL2(0) 00106000
  176. .END ANOP 00107000
  177. DS 0F 00108000
  178. E&SYSNDX EQU * 00109000
  179. DC X'00000000' 00110000
  180. AGO .EXIT 00111000
  181. .NAMERR ANOP 00112000
  182. MNOTE 12,'NO SYSNAME SPECIFIED' 00113000
  183. MEXIT 00114000
  184. .NAMER1 ANOP 00115000
  185. MNOTE 12,'INVALID SYSNAME SPECIFIED' 00116000
  186. MEXIT 00117000
  187. .SIZERR ANOP 00118000
  188. MNOTE 12,'NO MINIMUM CORE SIZE SPECIFIED' 00119000
  189. MEXIT 00120000
  190. .VSYSERR ANOP 00121000
  191. MNOTE 12,'NO VIRTUAL SYSRES SPECIFIED' 00122000
  192. MEXIT 00123000
  193. .VADRERR ANOP 00124000
  194. MNOTE 12,'NO VIRTUAL SYSRES ADDRESS SPECIFIED' 00125000
  195. MEXIT 00126000
  196. .CYLERR ANOP 00127000
  197. MNOTE 12,'NO SYSRES CYLINDER SPECIFIED' 00128000
  198. MEXIT 00129000
  199. .SVOLERR ANOP 00130000
  200. MNOTE 12,'NO VOL SER FOR SYSVOL SPECIFIED' 00131000
  201. MEXIT 00132000
  202. .STRTERR ANOP 00133000
  203. MNOTE 12,'NO STARTING ADDRESS FOR SAVED SYSTEM SPECIFIED' 00134000
  204. MEXIT 00135000
  205. .PERR ANOP 00136000
  206. MNOTE 12,'DASD PAGE NUMBER MUST BE "1" OR MORE' 00137000
  207. MEXIT 00138000
  208. .PAGERR ANOP 00142000
  209. MNOTE 12,'INVALID PAGE NUMBER' 00143000
  210. MEXIT 00144000
  211. .PGNMERR ANOP 00145000
  212. MNOTE 12,'NO PAGE NUMBERS SPECIFIED' 00146000
  213. MEXIT 00147000
  214. .PROTERR ANOP 00147100
  215. MNOTE 12,'INVALID PROTECT KEYWORD SPECIFIED' 00147300
  216. MEXIT 00147500
  217. .EXIT ANOP 00148000
  218. MEND 00149000
ibm/vm370-lib/macro/namesys.macro_src.txt ยท Last modified: 2023/08/06 13:38 by Site Administrator