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.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 630 views
  • 0 likes
  • 3 in conversation