BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
wvelis25
Calcite | Level 5

Hello to all,

 

I am somewhat new to SAS, I am currently trying to upload a file dealing with predictive modeling. I was given instructions on how to upload and run the program but after following the instructions, there is very success with doing anything with the files. can anyone please help me understand what I might be doing wrong with the code please?

Here are the instructions and the first couple of files attached ( I was not allowed to attach any more than these files):

Please Help.....

 

Predictive Modeling Using Logistic Regression Data File Configuration

You will need to complete the following steps to use the course data file programs in SAS® Studio that are needed to complete the exercises that are found in the Predictive Modeling Using Logistic Regression Course Notes.

  1. Create a new folder in SAS® Studio.
  • After logging into SAS® Studio, right click on My Folders and select the option for New Folder. Name the new folder PMLR.
    • The program files reference PMLR which requires you to name the SAS® Studio folder PMLR.
  1. Copy the Predictive Modeling Using Logistic Regression data files to the new PMLR folder.
  • Download and unzip the data files for the Predictive Modeling Course onto your computer.
  • Right click on your PMLR folder in SAS® Studio and select “Upload Files”. Navigate to the data on your computer and copy all of the files.
  1. Create a library in SAS® Studio.
  • Right click on the PMLR folder you created and select “Create” and then “Library”. Keep the name of the library PMLR. The library can be thought of as a shortcut to the folder for reference in a program.
  1. Comment out the libname pmlr '.'; command in the programs before running.
  • Before running any of the programs from the Predictive Modeling data files, you will need to comment out the first line if it has “libname pmlr '.';”. The libname file creates a new library (shortcut). This will erase any references to data in the existing library.
  • To comment out the line, type /* in front of the line, and */ after the line.
    • Open pmlr00d01.sas and comment out libname as follows: /*libname pmlr '.'; */
    • Open pmlr01d01.sas and comment out libname as follows: /*libname pmlr '.'; */
1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

HI:

  When you use the Course Notes, we only include 1 set of instructions and these instructions were NOT written explicitly for SAS University Edition or SAS OnDemand for Academics. In the Course Notes, the assumption is that students are running SAS on their work or school's installation of SAS and they have write access to a folder on their local C: drive or to a folder on their network.

 

  How are you taking the class, if you have course notes? Are you working with a professor? If so, then your professor has the zip file of programs used in the course, including the program that makes the data. Every set of course notes has a specific set of data and programs that match what is in the notes. For example, the SAS 9.3 version of the course has a different zip file than the version written for SAS/STAT 15.1.

 

  However, if you are using our e-learning version of the Predictive Modeling class -- then we have THESE instructions inside the version 15.1 class:

Cynthia_sas_0-1590109571582.png

 

The e-learning class has instructions tailored to the 3 primary methods of using SAS -- local SAS on Windows, SAS University Edition in a Virtual Machine and SAS OnDemand for Academics. Each link has a zip file that is specific to each usage scenario.

 

  If you have the zip file that goes with the course notes, you only have 1 set of instructions. That set of instructions may or may not work as written for your method of using SAS. For example, if you are using SAS University Edition in a Virtual Machine and have our Course Notes for this class, then you do NOT need to do any upload of the zip contents. You only need to get the zip file contents unzipped into your Shared Folder location. You will need to use a LIBNAME statement to point to the write access folder where you will create that data by running a program.

 

  If you are using SAS in a local install, where you have a SAS icon on your Start Menu in Windows, then again, there is NOT any upload needed. You only need to download the zip file, and unzip the contents to a C: drive location or a network location where you have write access. Then you need to issue your LIBNAME statement and run the setup program to make the data.

 

  However, with the Course notes, if you have SAS OnDemand for Academics, then you have to first get the zip file onto your local computer, unzip the contents, then go up to the OnDemand server, make a PMLR folder on the OnDemand server and then upload the zip file contents to the correct folder structure on the server. And then you'll need to issue your LIBNAME statement and run the program to make the data.

 

  Without knowing how you are following the course (using Course Notes or using e-learning), it's hard to provide more in-depth help.

 

  Also, you should be aware of the fact that there is also a version of Predictive Modeling using Logistic Regression inside the SAS Academy for Data Science. In this version of the Academy, students MUST use the data that is already loaded on the Virtual Machine for their level of the Academy. Students in the SAS Academy for Data Science do not receive a zip file to download.

 

  Are you working with a professor or teaching assistant in this class? If your instructions came from your professor, then my recommendation is that you ask them for help with the setup. If you have a need for data setup help with the instructions as we have written then for the course notes or inside the e-learning class, then you can send mail to curriculumconsulting@sas.com and let us know the Book Code that is on the copyright page for the course notes you have so we can investigate those instructions and help you.

 

Cynthia

 

View solution in original post

1 REPLY 1
Cynthia_sas
SAS Super FREQ

HI:

  When you use the Course Notes, we only include 1 set of instructions and these instructions were NOT written explicitly for SAS University Edition or SAS OnDemand for Academics. In the Course Notes, the assumption is that students are running SAS on their work or school's installation of SAS and they have write access to a folder on their local C: drive or to a folder on their network.

 

  How are you taking the class, if you have course notes? Are you working with a professor? If so, then your professor has the zip file of programs used in the course, including the program that makes the data. Every set of course notes has a specific set of data and programs that match what is in the notes. For example, the SAS 9.3 version of the course has a different zip file than the version written for SAS/STAT 15.1.

 

  However, if you are using our e-learning version of the Predictive Modeling class -- then we have THESE instructions inside the version 15.1 class:

Cynthia_sas_0-1590109571582.png

 

The e-learning class has instructions tailored to the 3 primary methods of using SAS -- local SAS on Windows, SAS University Edition in a Virtual Machine and SAS OnDemand for Academics. Each link has a zip file that is specific to each usage scenario.

 

  If you have the zip file that goes with the course notes, you only have 1 set of instructions. That set of instructions may or may not work as written for your method of using SAS. For example, if you are using SAS University Edition in a Virtual Machine and have our Course Notes for this class, then you do NOT need to do any upload of the zip contents. You only need to get the zip file contents unzipped into your Shared Folder location. You will need to use a LIBNAME statement to point to the write access folder where you will create that data by running a program.

 

  If you are using SAS in a local install, where you have a SAS icon on your Start Menu in Windows, then again, there is NOT any upload needed. You only need to download the zip file, and unzip the contents to a C: drive location or a network location where you have write access. Then you need to issue your LIBNAME statement and run the setup program to make the data.

 

  However, with the Course notes, if you have SAS OnDemand for Academics, then you have to first get the zip file onto your local computer, unzip the contents, then go up to the OnDemand server, make a PMLR folder on the OnDemand server and then upload the zip file contents to the correct folder structure on the server. And then you'll need to issue your LIBNAME statement and run the program to make the data.

 

  Without knowing how you are following the course (using Course Notes or using e-learning), it's hard to provide more in-depth help.

 

  Also, you should be aware of the fact that there is also a version of Predictive Modeling using Logistic Regression inside the SAS Academy for Data Science. In this version of the Academy, students MUST use the data that is already loaded on the Virtual Machine for their level of the Academy. Students in the SAS Academy for Data Science do not receive a zip file to download.

 

  Are you working with a professor or teaching assistant in this class? If your instructions came from your professor, then my recommendation is that you ask them for help with the setup. If you have a need for data setup help with the instructions as we have written then for the course notes or inside the e-learning class, then you can send mail to curriculumconsulting@sas.com and let us know the Book Code that is on the copyright page for the course notes you have so we can investigate those instructions and help you.

 

Cynthia

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 518 views
  • 2 likes
  • 2 in conversation