C Collection of code snippets by Arne Vajhøj 
C (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
      program io
      character*1 dummy
      write(*,*) '*'
c this fails if SYS$INPUT is a file:
      write(5,*) '5'
      write(6,*) '6'
      write(*,'(1x,a,$)') 'Read from *: '
      read(*,*) dummy
      write(*,'(1x,a,$)') 'Read from 5: '
      read(5,*) dummy
      write(*,'(1x,a,$)') 'Read from 6: '
c this fails if SYS$OUTPUT is a file:
      read(6,*) dummy
      end
