User Tools

Site Tools


ibm:vm370-lib:macro:sysusr.macro_src

SYSUSR Source

References

Source Listing

SYSUSR.MACRO.txt
  1. MACRO 00010000
  2. SYSUSR 00020000
  3. .* THIS MACRO GENERATES THE LIST OF CP SYSTEM VOLUMES 00030000
  4. GBLC &SY$USR 00040000
  5. &SY$USR SETC 'HERE' ANNOUNCE PRESENCE TO SYSLOCS 00050000
  6. GBLA &USRCNT 00060000
  7. GBLB &USRTEMP 00070000
  8. GBLC &USRLST(255) 00080000
  9. LCLA &INDEX1,&INDEX2,&N 00090000
  10. LCLB &BIT1,&BIT2 00100000
  11. LCLC &VOLSER 00110000
  12. &INDEX1 SETA 1 00120000
  13. &USRCNT SETA N'&SYSLIST 00130000
  14. SPACE 00140000
  15. ENTRY DMKSYSUS,DMKSYSUC 00150000
  16. DMKSYSUC DC F'&USRCNT' 00160000
  17. DMKSYSUS DS 0F 00170000
  18. .LOOP1 AIF (&INDEX1 GT &USRCNT).EXIT 00180000
  19. ACTR 4096 00190000
  20. &VOLSER SETC '&SYSLIST(&INDEX1,1)' 00200000
  21. &INDEX2 SETA 1 00210000
  22. .LOOP2 AIF (&INDEX2 GE &INDEX1).CONT 00220000
  23. AIF ('&USRLST(&INDEX2)' EQ '&VOLSER').ERR3 00230000
  24. &INDEX2 SETA &INDEX2+1 00240000
  25. AGO .LOOP2 00250000
  26. .CONT AIF (&INDEX1 GT 255).ERR2 00260000
  27. AIF (N'&SYSLIST(&INDEX1) GT 1).ERR1 00270000
  28. &USRLST(&INDEX1) SETC '&VOLSER' 00280000
  29. DC CL6'&VOLSER',H'-1' 00290000
  30. &INDEX1 SETA &INDEX1+1 00300000
  31. AGO .LOOP1 00310000
  32. .EXIT AIF (&USRCNT LE 0).ERR4 00320000
  33. SPACE 3 00330000
  34. MEXIT 00340000
  35. .ERR1 MNOTE 8,'INVALID PREFERENCE OPTION' 00350000
  36. MEXIT 00360000
  37. .ERR2 MNOTE 8,'MORE THAN 255 VOLUMES SPECIFIED' 00370000
  38. MEXIT 00380000
  39. .ERR3 MNOTE 8,'DUPLICATE VOLUME SERIAL SPECIFIED' 00390000
  40. MEXIT 00400000
  41. .ERR4 MNOTE 0,'NO VOLUMES SPECIFIED' 00410000
  42. MEND 00420000
ibm/vm370-lib/macro/sysusr.macro_src.txt ยท Last modified: 2023/08/06 13:38 by Site Administrator