Alistair, something like: WRITE(msgBuf,`(A,125I4)') 'Levels: ',(levs(l,n),l=1,nlevels(n)) would work for Nr < 126 , and fit in msgBuf with MAX_LEN_MBUF=512 Do we have many applications with more than 120 levels ? Jean-Michel