@jacksonan123 wrote: I appreciate the explanation. However I tried the same code on my recent post and it failed. The data was also a text file and to me similar to my previous example. Apparently there is something I still don't grasp about text files with labels interspersed with data. NOTE: Invalid data for id in line 1 1-305. RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+- ---8----+----9----+----0 1 ID TIME CMT Y1 Y2 CP1 CP2 DV MDV 101 X COUNT RHYD RHYL RMETD RMETL CDLV CLLV CVD 201 CVL CRESI CWRESI CRES CWRES DV PRED RES 301 WRES 305 chk=ID id=. time=. cmt=. _ERROR_=1 _N_=1 NOTE: Invalid data for id in line 2 1-31
You need to show all relevant code.
This message implies that you are tell SAS you have delimited data that does not exist in the file. For example if you used DSD option which implied DLM=','
Invalid data for id in line 1 1-305
The message is saying for the variable being read "ID" in LINE 1 Columns 1-305
The key data here is 1-305.
... View more