User Tools

Site Tools


cdc:nos2.source:nam5871:ndlzfil

NDLZFIL

Table Of Contents

  • [00006] NDL$ZFL - ZERO FILL NAME.

Source Code

NDLZFIL.txt
  1. *DECK NDLZFIL
  2. PROC NDLZFIL(WORD);
  3. BEGIN 4
  4. *IF,DEF,IMS
  5. #
  6. ** NDL$ZFL - ZERO FILL NAME.
  7. *
  8. * D.K. ENDO 81/11/10
  9. *
  10. * THIS PROCEDURE ZERO FILLS A BLANK FILLED NAME.
  11. *
  12. * PROC NDL$ZFL(WORD)
  13. *
  14. * ENTRY WORD = BLANK FILLED NAME.
  15. *
  16. * EXIT WORD = ZERO FILLED NAME.
  17. *
  18. * METHOD
  19. *
  20. * FOR EACH CHARACTER IN WORD,
  21. * IF CHARACTER IS A BLANK,
  22. * REPLACE BLANK WITH ZERO.
  23. *
  24. #
  25. *ENDIF
  26. ITEM WORD C(10); # WORD TO BE ZERO FILLED #
  27. DEF BLNK # O"55" #; # DISPLAY CODE FOR BLANK #
  28. ITEM I; # SCRATCH ITEM #
  29. # #
  30. # NDLZFIL CODE BEGINS HERE #
  31. # #
  32. FOR I=0 STEP 1 UNTIL 9 DO
  33. IF C<I,1>WORD EQ BLNK
  34. THEN 9
  35. C<I,1>WORD=O"00"; 0
  36. RETURN; 1
  37. END # NDLZFIL #
  38. TERM; 3
cdc/nos2.source/nam5871/ndlzfil.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator