Hi Simon, I guess you are referring to the 2-byte binary field in position 367 in the file info data structure. Unless you are using the POST opcode somewhere in your program the current line number should always be accessible in that field. By the way, if you are only using it for program internal calculations, there is no need to convert the binary value to decimal. Here is how I would define it in RPG/IV: PrtLinInfo______DS _PlCurLin_______________367___368B_0 Best regards, Carsten

Reply With Quote