This is header part
Header of what?
You're going to need to provide some context. Such as describe some details of the process and possibly the output destination.
I want prepare a patient profile form.In that I want to make a header(as we do in word for each and every page). For that header I have rawdata, So I want to fill that header with rawdata by using SAS.
You haven't provided us with any new information. You need to provide new additional information and detail. We need to see (a portion of) your data. (Do not ignore this part!) We need to understand what variables go where. (Do not ignore this part!) You need to explain this clearly, completely, and in detail, start to finish.
@Lakhinansrilath wrote:
I want prepare a patient profile form.In that I want to make a header(as we do in word for each and every page). For that header I have rawdata, So I want to fill that header with rawdata by using SAS.
So this is getting closer to an explanation. You are creating patient profile report.
The header you are talking about is the header to this report.
So to do this you need to know what values you have in the data that correspond to the information in the header. Is there a variable with the patient id? What is the variable name? What are the other fields in the header? What are the variables that hold that information.
How are you generating the patient profile? Is a single PROC PRINT? Something else?
In general the way to add header lines to a report is to use TITLE statements. You can have up to ten TITLE statements to add up to 10 lines at the top of each page.
In order to write a SAS program, we need to know at least two things:
We need both of these spelled out clearly so there's no need for us to guess.
The SAS data set you are using should be provided as working SAS data step code, which you can type in yourself or use these instructions. We cannot work from data in Excel or other documents; we cannot work with screen captures.
Please provide more information: does the screenshot show the complete header? Where to put what? What must follow the header? For such questions providing data in usable form is a must-requirement.
@Lakhinansrilath wrote:
Yeah.The screenshot provide whole information regarding header.I want to fill that header with raw data
"Raw data" from where? Is it in a data set? Is it in the same data set that the body of the report uses?
Do you expect to make multiple reports with different headers? If there are multiple reports do you have the body data in one data set or multiple?
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!
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.