BookmarkSubscribeRSS Feed
BrahmanandaRao
Lapis Lazuli | Level 10

SAS Data sets for Q1 to Q4: WORK.Fin_account and others in WORK library Q1. Using the procedure 'PROC CONTENTS' to the SAS data set 'WORK.Fin_account'. You can obtain an output data set containing the following data structure information (a) variable name (b) variable type (3) length (4) format (5) column label.
Q2. Applying the 'PROC SQL' on the output data set in Q1 above, to create a data set which can tell you how many character and numeric fields in the data set 'WORK.Fin_account'.
Q3. Using the 'PROC CONTENTS' to send data dictionary of all data sets in the library 'WORK' into a SAS table ‘alldata’ using ‘WORK._all_’ option. The resulting table only keeps the following three fields a) variable name (b) variable type (c) library name (d) name of the table.
Q4. Applying the 'PROC SQL' on the output table in Q2 above, to create a data set which can tell you how many character and numeric fields in for each data set in the library 'WORK'.

 

i want import and solve the questions

1 REPLY 1
Kurt_Bremser
Super User

Following the lessons provided by your teacher should enable you to solve these questions.

 

If you need someone writing your code for you, hire a consultant.

 

If you made an honest effort at solving these questions yourself, but ran into problems, post your codes and logs.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 755 views
  • 0 likes
  • 2 in conversation