User Tools

Site Tools


ibm:vm370-lib:macro:systime.macro_src

SYSTIME Source

References

Source Listing

SYSTIME.MACRO.txt
  1. MACRO 00001000
  2. SYSTIME &ZONE=0,&LOC=EAST,&ID=GMT 00002000
  3. .* THIS MACRO BUILDS THE INFORMATION REQUIRED TO SET THE TOD CLOCK 00003000
  4. GBLC &SY$TIME @V60BBBC 00003300
  5. &SY$TIME SETC 'HERE' ANNOUNCE PRESENCE TO SYSLOCS @V60BBBC 00003600
  6. LCLA &HOURS,&MIN,&SEC,&TOT 00004000
  7. LCLC &MINUS 00005000
  8. AIF (K'&ID EQ 0).BADID 00006000
  9. AIF (('&LOC' NE 'EAST') AND ('&LOC' NE 'WEST')).BADLOC 00007000
  10. AIF ('&LOC' EQ 'EAST').PLUS 00008000
  11. &MINUS SETC '-' 00009000
  12. .PLUS AIF ((N'&ZONE EQ 0) OR (N'&ZONE GT 3)).NOZONE 00010000
  13. AIF ('&ZONE(1)' EQ '').NOZONE 00011000
  14. &HOURS SETA &ZONE(1) 00012000
  15. AIF ('&ZONE(2)' EQ '').SETSEC 00013000
  16. &MIN SETA &ZONE(2) 00014000
  17. .SETSEC AIF ('&ZONE(3)' EQ '').ENDTM 00015000
  18. &SEC SETA &ZONE(3) 00016000
  19. .ENDTM ANOP 00017000
  20. &TOT SETA &HOURS*3600+&MIN*60+&SEC 00018000
  21. AIF (&TOT GT 13*3600).BADZONE 00019000
  22. SPACE 1 00020000
  23. ENTRY DMKSYSTZ,DMKSYSTI 00021000
  24. DMKSYSTZ DC F'&MINUS&TOT' TIME ZONE DIFFERENTIAL IN SECONDS 00022000
  25. DMKSYSTI DC CL3'&ID' TIME ZONE IDENTIFIER 00023000
  26. MEXIT 00024000
  27. .BADLOC MNOTE 8,'INVALID LOC SPECIFIED' 00025000
  28. MEXIT 00026000
  29. .BADZONE MNOTE 8,'ZONE GREATER THAN 13 HOURS' 00027000
  30. MEXIT 00028000
  31. .BADID MNOTE 8,'ZERO LENGTH ID SPECIFIED' 00029000
  32. MEXIT 00030000
  33. .NOZONE MNOTE 8,'INVALID ZONE' 00031000
  34. MEND 00032000
ibm/vm370-lib/macro/systime.macro_src.txt ยท Last modified: 2023/08/06 13:38 by Site Administrator