BookmarkSubscribeRSS Feed
10 REPLIES 10
ballardw
Super User

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.

Lakhinansrilath
Calcite | Level 5
I kept a photo.I want fill that parameters by using SAS and that part is under header
Lakhinansrilath
Calcite | Level 5

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.

PaigeMiller
Diamond | Level 26

@Lakhinansrilath 

 

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.

--
Paige Miller
Tom
Super User Tom
Super User

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

Lakhinansrilath
Calcite | Level 5
Yeah, SUBJID is the variable used for Patient ID.All the parameter what I took in the header are there in the rawdata(Which was provided by client). I generate Profile form by using raw data,I used to make normal tables according to Profileform and finally I used PROC PRINT.I used TITLE statements also.
If we make tables for rawdata It will automatically fill according to our codes.but in header(what I kept as screenshot) what I have to do to fill the data in header part which is not in table format.This is the main query?
PaigeMiller
Diamond | Level 26

In order to write a SAS program, we need to know at least two things:

 

  1. The SAS data set you are working with
  2. The desired output

 

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.

--
Paige Miller
andreas_lds
Jade | Level 19

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
Calcite | Level 5
Yeah.The screenshot provide whole information regarding header.I want to fill that header with raw data
ballardw
Super User

@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?

 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 10 replies
  • 1940 views
  • 0 likes
  • 5 in conversation