I am reading a variable length file delimited by hex 00 on mainframe. I notice my SAS program is skipping every other record in the file. The record format is VB. Record length is defined as 1000. When I browse the file, I see that its record length is 996. But I changed the in_rec to char996 and the same thing happened.
Any input would be greatly appreciated!!
INPUT @1 IN_REC $CHAR1000.;
NEW1 = TRANSLATE(IN_REC,"~","00"X);
PUT @1 NEW1;