In particular if you are using SAS University Edition then SAS is running in a virtual machine and you will only have access to files that are in the /folders/myfolders/ location in that virtual machine.
The path you use in your code needs to work on that machine, which might not be your machine. In the back end it starts SAS sessions on some SAS server. SAS/Studio only runs the user interface on your local machine using the browser that you used to connect to the server. But not what version of SAS you are using. Make sure you are using the course/instructions for your SAS environment. There are many courses and versions of the course instructions are tailored for the environment you are using to run SAS.
You listed the contents of the instructions, but did not specify which set of instructions you are following.