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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

LIBNAME 101

Follow along as SAS technical trainer Dominique Weatherspoon expertly answers all your questions about SAS Libraries.

Find more tutorials on the SAS Users YouTube channel.

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