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

specifically regarding putlog and temporary variables.

1 ACCEPTED SOLUTION

Accepted Solutions
Al14
SAS Employee

Putlog is covered in the section "Understanding DATA Step Processing" in SAS Programming 2: Data Manipulation Techniques.  

 

As for creating temporary variables, I assume you mean variable in the variable=column sense.  You can create as many variables as you want in a DATA step.  To prevent them from being output (make them temporary), list them in a DROP statement.  The DROP statement is introduced in SAS Programming 1, and discussed in more depth in Programming 2.  Here is the documentation for the DROP statement:

 

Also, here is the documentation for putlog ( https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n05jha8tsrpanyn19m05ss7ltv6e.ht... ) and drop ( https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n1capr0s7tilbvn1lypdshkgpaip.ht... )

View solution in original post

2 REPLIES 2
japelin
Rhodochrosite | Level 12


I think it's Base SAS.

Al14
SAS Employee

Putlog is covered in the section "Understanding DATA Step Processing" in SAS Programming 2: Data Manipulation Techniques.  

 

As for creating temporary variables, I assume you mean variable in the variable=column sense.  You can create as many variables as you want in a DATA step.  To prevent them from being output (make them temporary), list them in a DROP statement.  The DROP statement is introduced in SAS Programming 1, and discussed in more depth in Programming 2.  Here is the documentation for the DROP statement:

 

Also, here is the documentation for putlog ( https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n05jha8tsrpanyn19m05ss7ltv6e.ht... ) and drop ( https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n1capr0s7tilbvn1lypdshkgpaip.ht... )

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

5 Steps to Your First Analytics Project Using SAS

For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 479 views
  • 0 likes
  • 3 in conversation