Jul 8, 2004 #1 lucho33 Programmer Oct 17, 2002 2 AR I'm reading sequentially a file (TPS), and I need obtain the record number of each record, to save it in other file. Is it possible ? Thanks
I'm reading sequentially a file (TPS), and I need obtain the record number of each record, to save it in other file. Is it possible ? Thanks
Jul 10, 2004 1 #2 ShankarJ Programmer Aug 9, 2003 856 sPos = POSITION(MyFile) lRec = ( Val(sPos[1]) * (256 ^ 3) ) + ( Val(sPos[2]) * (256 ^ 2) ) + Val(sPos[3]) * 256 ) + Val(sPos[4]) Upvote 0 Downvote
sPos = POSITION(MyFile) lRec = ( Val(sPos[1]) * (256 ^ 3) ) + ( Val(sPos[2]) * (256 ^ 2) ) + Val(sPos[3]) * 256 ) + Val(sPos[4])