You got the part right about copying the LIBNAME statement.
However you ignored the part about "Never ever". So you have now destroyed your data set and need to re-create it using your earlier program.
You absolutely must, must, must learn the meaning of basic statements in SAS. LIBNAME is only one of them. Taking your posts as a whole, you also need to know the meaning of a DATA statement, a SET statement, how to keep and drop variables, how to refer to values of character variables, how to use parentheses in an IF THEN statement, and you must read the SAS log and understand the notes that SAS is providing there. There's more, but those are the points that stand out from the recent posts you have made. You must take a course ... there are free online courses available. And don't even think of using macro language for the next six months until you know these basics inside and out.
... View more