Table of Contents

NAMENCP Source

References

Source Listing

NAMENCP.MACRO.txt
  1. MACRO 00001000
  2. &LABEL NAMENCP &CPNAME=,&CPSIZE=,&CPTYPE=,&SYSVOL=,&SYSSTRT=, X00002000
  3. &SYSPGCT= 00003000
  4. .* THIS MACRO CREATED FOR VM/370 SUPPORT OF 3704 / 3705 00004000
  5. GBLA &NCPSW 00005000
  6. LCLA &A,&B,&D,&SIZERR 00006000
  7. LCLC &CSIZE 00007000
  8. DMKRNTBL CSECT 00008000
  9. AIF ('&NCPSW' EQ '1').NTFIRST 00009000
  10. &NCPSW SETA 1 00010000
  11. AGO .BEG 00011000
  12. .NTFIRST ANOP 00012000
  13. ORG *-4 00013000
  14. .BEG ANOP 00014000
  15. S&SYSNDX EQU * 00015000
  16. DC AL4(E&SYSNDX-S&SYSNDX) DISPLACEMENT TO NEXT ENT. 00016000
  17. &SIZERR SETA 1 00017000
  18. AIF ('&CPSIZE' EQ '').SIZERR 00018000
  19. &A SETA 1 00019000
  20. &B SETA K'&CPSIZE 00020000
  21. .SZLOOP ANOP 00021000
  22. AIF ('&CPSIZE'(&A,1) EQ 'K').S1 00022000
  23. &A SETA &A+1 00023000
  24. AIF ('&A' GT '&B').SIZER1 00024000
  25. AGO .SZLOOP 00025000
  26. .S1 ANOP 00026000
  27. &A SETA &A-1 00027000
  28. &CSIZE SETC '&CPSIZE'(1,&A) 00028000
  29. AIF ('&CSIZE' GT '256').SIZER2 00029000
  30. DC AL4(&CSIZE*1024) 00030000
  31. .NAM1 ANOP 00031000
  32. AIF ('&CPNAME' EQ '').NAMERR 00032000
  33. &B SETA K'&CPNAME 00033000
  34. AIF (&B LT 1).NAMER1 NAME LESS THAN 1 CHAR. - ERROR 00034000
  35. AIF (&B GT 8).NAMER1 NAME GREATER THAN 8 CHARS. - ERROR 00035000
  36. DC CL8'&CPNAME' SYSTEM NAME 00036000
  37. .VOL1 ANOP 00037000
  38. AIF ('&SYSVOL' EQ '').SVOLERR 00038000
  39. DC CL6'&SYSVOL' VOL SER CONTAINING SAVED SYSTEM 00039000
  40. .TYP1 ANOP 00040000
  41. AIF ('&CPTYPE' EQ '').TYPERR 00041000
  42. AIF ('&CPTYPE' EQ 'EP').EP 00042000
  43. AIF ('&CPTYPE' EQ 'PEP').PEP 00043000
  44. AIF ('&CPTYPE' EQ 'NCP').NCP 00044000
  45. AGO .TYPER1 00045000
  46. .EP DC X'02' SET UP EMULATOR FLAG 00046000
  47. AGO .CPTYPOK 00047000
  48. .PEP DC X'03' SET UP PARTITIONED EMULATOR FLAG 00048000
  49. AGO .CPTYPOK 00049000
  50. .NCP DC X'01' SET UP NCP NATIVE MODE FLAG 00050000
  51. .CPTYPOK ANOP 00051000
  52. DC X'00' CP*2 - RESERVED FOR FUTURE USE 00052000
  53. .STRT1 ANOP 00053000
  54. AIF ('&SYSSTRT' EQ '').STRTERR 00054000
  55. &A SETA 1 00055000
  56. DC AL2(&SYSSTRT(&A)) CYLINDER 00056000
  57. &A SETA &A+1 00057000
  58. AIF ('&SYSSTRT(&A)' EQ '0').PERR 00058000
  59. DC AL1(&SYSSTRT(&A)) PAGE NUMBER 00059000
  60. DC AL1(0) 00060000
  61. .PGCT1 ANOP 00061000
  62. AIF ('&SYSPGCT' EQ '').PGCTERR 00062000
  63. AIF ('&CSIZE' EQ '0').SKPCHK 00063000
  64. &D SETA &CSIZE/4+4 MAXIMUM PAGE COUNT 00064000
  65. AIF (&SYSPGCT GT &D).PGCTER1 @VA02766 00065100
  66. .SKPCHK ANOP 00066000
  67. DC AL4(&SYSPGCT) NUMBER OF PAGES SAVED 00067000
  68. .END ANOP 00068000
  69. E&SYSNDX DS 0F 00069000
  70. DC X'00000000' 00070000
  71. SPACE 2 00071000
  72. AGO .EXIT 00072000
  73. .NAMERR MNOTE 12,'''CPNAME'' NOT SPECIFIED' 00073000
  74. AGO .VOL1 00074000
  75. .NAMER1 MNOTE 12,'INVALID ''CPNAME'' OPERAND' 00075000
  76. AGO .VOL1 00076000
  77. .SIZERR ANOP 00077000
  78. &SIZERR SETA 0 00078000
  79. MNOTE 12,'''CPSIZE'' NOT SPECIFIED' 00079000
  80. AGO .NAM1 00080000
  81. .SIZER1 ANOP 00081000
  82. &SIZERR SETA 0 00082000
  83. MNOTE 12,'INVALID ''CPSIZE'' OPERAND' 00083000
  84. AGO .NAM1 00084000
  85. .SIZER2 ANOP 00085000
  86. &SIZERR SETA 0 00086000
  87. MNOTE 12,'''CPSIZE'' VALUE EXCEEDS MAXIMUM (256K)' 00087000
  88. AGO .NAM1 00088000
  89. .TYPERR MNOTE 12,'''CPTYPE'' NOT SPECIFIED' 00089000
  90. AGO .STRT1 00090000
  91. .TYPER1 MNOTE 12,'INVALID ''CPTYPE'' OPERAND' 00091000
  92. AGO .STRT1 00092000
  93. .SVOLERR MNOTE 12,'''SYSVOL'' NOT SPECIFIED' 00093000
  94. AGO .TYP1 00094000
  95. .STRTERR MNOTE 12,'''SYSSTRT'' NOT SPECIFIED' 00095000
  96. AGO .PGCT1 00096000
  97. .PERR MNOTE 12,'''SYSSTRT'' PAGE NUMBER MUST BE ''1'' OR MORE' 00097000
  98. AGO .PGCT1 00098000
  99. .PGCTERR MNOTE 12,'''SYSPGCT'' NOT SPECIFIED' 00099000
  100. AGO .END 00100000
  101. .PGCTER1 MNOTE 12,'''SYSPGCT'' GREATER THAN NUMBER OF PAGES IMPLIED BY X00101000
  102. ''CPSIZE'' PARAMETER.' 00102000
  103. AGO .END 00103000
  104. .EXIT ANOP 00104000
  105. MEND 00105000