User Tools

Site Tools


ibm:vm370-lib:macro:rdterm.macro_src

RDTERM Source

References

Source Listing

RDTERM.MACRO.txt
  1. MACRO 00001000
  2. &LABEL RDTERM &BUFFER,&EDIT=YES,&LENGTH=,&ATTREST=YES 00002100
  3. LCLC &ADDR,&CODE,&LENG 00002200
  4. &LENG SETC '0' 00002300
  5. &LABEL DS 0H 00005000
  6. AIF (T'&BUFFER EQ 'O').ERR1 00006000
  7. AIF ('&EDIT' EQ 'YES').EDIT4 00007000
  8. AIF ('&EDIT' EQ 'PAD').EDIT3 00008000
  9. AIF ('&EDIT' EQ 'UPCASE').EDIT2 00009000
  10. AIF ('&EDIT' EQ 'NO').EDIT1 00010000
  11. AIF ('&EDIT' EQ 'PHYS').EDIT0 00011000
  12. MNOTE 4,'INVALID EDIT SPECIFICATION - ''YES'' ASSUMED' @VA04128 00012000
  13. AGO .EDIT4 00013000
  14. .EDIT0 AIF (T'&LENGTH NE 'O').EDITL0 00014100
  15. &CODE SETC 'X' 00014150
  16. AIF ('&ATTREST' NE 'NO').CONT1C @VA04128 00014175
  17. &LENG SETC '130' @VA04128 00014200
  18. AGO .EDITL4 @VA04128 00014225
  19. .EDITL0 AIF ('&LENGTH'(1,1) EQ '(').EDITL1 00014250
  20. &LENG SETC '&LENGTH' 00014300
  21. .EDITL4 ANOP @VA04128 00014325
  22. MVC DMS&SYSNDX.B+2(2),=AL2(&LENG) 00014350
  23. AGO .EDITL2 00014400
  24. .EDITL1 STH &LENGTH(1),DMS&SYSNDX.B+2 00014450
  25. .EDITL2 AIF ('&ATTREST' EQ 'NO').EDITL3 @VA04128 00014500
  26. &CODE SETC '*' @VA04128 00014550
  27. AGO .CONT1C @VA04128 00014600
  28. .EDITL3 ANOP 00014800
  29. &CODE SETC '$' 00014850
  30. AGO .CONT1B 00014900
  31. .EDIT1 ANOP 00017000
  32. &CODE SETC 'T' 00018000
  33. AGO .CONT1 00019000
  34. .EDIT2 ANOP 00020000
  35. &CODE SETC 'V' 00021000
  36. AGO .CONT1 00022000
  37. .EDIT3 ANOP 00023000
  38. &CODE SETC 'S' 00024000
  39. AGO .CONT1 00025000
  40. .EDIT4 ANOP 00026000
  41. &CODE SETC 'U' 00027000
  42. .CONT1 AIF (T'&LENGTH EQ 'O').CONT1A 00028100
  43. MNOTE 4,'LENGTH SPECIFICATION IGNORED WHEN EDIT NOT ''PHYS''' @VA04128 00028140
  44. .CONT1A AIF ('&ATTREST' EQ 'YES').CONT1B @VA04128 00028180
  45. AIF ('&ATTREST' NE 'NO').CONT1D @VA04128 00028220
  46. MNOTE 4,'ATTREST ASSUMED ''YES'' WHEN EDIT NOT ''PHYS''' @VA04128 00028260
  47. AGO .CONT1B @VA04128 00028300
  48. .CONT1C AIF ('&ATTREST' EQ 'YES').CONT1B @VA04128 00028340
  49. .CONT1D ANOP @VA04128 00028380
  50. MNOTE 4,'INVALID ATTREST SPECIFICATION - ''YES'' ASSUMED' @VA04128 00028420
  51. .CONT1B ANOP 00028500
  52. &ADDR SETC '&BUFFER' 00029000
  53. AIF ('&BUFFER'(1,1) NE '(').CONT2 00030000
  54. &ADDR SETC '0' 00031000
  55. ST &BUFFER(1),DMS&SYSNDX.A 00032000
  56. MVI DMS&SYSNDX.A,X'01' 00033000
  57. .CONT2 ANOP 00034000
  58. CNOP 0,4 00034100
  59. BAL 1,DMS&SYSNDX.C 00035000
  60. DC CL8'WAITRD' 00036000
  61. DMS&SYSNDX.A DC X'01',AL3(&ADDR) 00037000
  62. DMS&SYSNDX.B DC C'&CODE',AL3(&LENG) 00038100
  63. DMS&SYSNDX.C SVC 202 00039000
  64. DC AL4(*+4) 00040000
  65. LH 0,DMS&SYSNDX.B+2 00041000
  66. MEXIT 00042000
  67. .ERR1 MNOTE 8,'BUFFER ADDRESS NOT SPECIFIED' 00043000
  68. MEND 00044000
ibm/vm370-lib/macro/rdterm.macro_src.txt ยท Last modified: 2023/08/06 13:38 by Site Administrator