Help using Base SAS procedures

basic beginner query

Reply
Occasional Contributor
Posts: 9

basic beginner query

I realize this is a multi-step process. Two years ago I pulled multiple files out of a longitudinal dataset to create my sampleset. I found out the variable I needed is not among them.

 

Trying to save file pulled from other location into existing library (to start the long and painful process of merging) but it is not working. I am using the libname command, but my file is not showing up. I realize it is a dead easy thing to do but I am missing something. Can someone help me out? Thanks.

Super User
Posts: 10,215

Re: basic beginner query

As a first step, post the code & log.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Occasional Contributor
Posts: 9

Re: basic beginner query

Posted in reply to KurtBremser
That is the tricky part. I am unable to take anyrhing out of the research
centre (including syntax) so I am relying on memory.
Regular Contributor
Posts: 209

Re: basic beginner query

Without code and log it will be hardly possible to help you. Posting example-data as data step could help, too.

Super User
Posts: 23,683

Re: basic beginner query

1. What is your file type, SAS7BDAT? If so, assign a library to the current location and a second to the new location. Then use PROC COPY or DATASETS to move the data. The documentation is available in the RDC and can be accessed so that you can see examples. 

 

2. If no, you'll need to first import the data and then do step 1.

Occasional Contributor
Posts: 9

Re: basic beginner query

Thank you! It is a sasbdat file. I did assign the library but perhaps did
not finish the step? Will try again tomorrow.
Ask a Question
Discussion stats
  • 5 replies
  • 179 views
  • 0 likes
  • 4 in conversation