hlp_lib_next.com 396 B

1234567891011121314151617
  1. $! 21 November 2004. SMS.
  2. $!
  3. $! HLP_LIB_NEXT.COM
  4. $!
  5. $! Find the next available HLP$LIBRARY[_*] logical name.
  6. $!
  7. $ base = "HLP$LIBRARY"
  8. $ candidate = base$ i = 0
  9. $!
  10. $ loop_top:
  11. $ if (i .gt. 0) then candidate = base+ "_"+ f$string( i)
  12. $ i = i+ 1
  13. $ if (f$trnlnm( candidate) .nes. "") then goto loop_top
  14. $!
  15. $ write sys$output candidate
  16. $!