Hello,
I'm having trouble with output for my homework problem. It keeps putting a different output that uses another dataset in my library ("Work"), and for my code, all the lines say "Error: Statement not valid or used out of proper order". For some reason, the dataset for this problem is not appearing in my library unlike the other datasets for the other problems. I have attached screenshots for your convenience below. I would greatly appreciate it if you could help me out.
Thanks in Advance!
data=fep3; ____ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 71 infile '/home/u59384393/Comp Tools Assignments/FEP3 (Excel txt).txt' dlm='09'x firstobs=2;
The log is pretty clear - you have errors in the code and they're highlighted for you.
There is no equal sign in a data step statement as you've shown there. Fixing that will help for starters - this error was likely not in your other code.
FYI - in the future please post your code and log directly into the forum, not as an attachment. It's faster and easier for you and much easier for us to answer quickly as we can copy/paste the solution back without having to download a bunch of files. PDF and HTML can also add extra invisible formatting characters which it includes in copying/pasting so it's not suitable for the forum.
@sascrazedpupil wrote:
Hello,
I'm having trouble with output for my homework problem. It keeps putting a different output that uses another dataset in my library ("Work"), and for my code, all the lines say "Error: Statement not valid or used out of proper order". For some reason, the dataset for this problem is not appearing in my library unlike the other datasets for the other problems. I have attached screenshots for your convenience below. I would greatly appreciate it if you could help me out.
Thanks in Advance!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.