BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
IanW
Calcite | Level 5

Hello,

 

I am trying to remove the variable labels and force them into specific positions ie "put intv @1" volume @12.etc..

 

proc print data=recpsum noobs;
var sdate intv class object volume over mean max;

format intv time8.0;
format volume 8.0;
format over 8.0;
format mean 8.4;

format max 8.4;

 

Thanks,

 

Ian 

 



 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

@IanW wrote:

I am trying to remove the variable labels and force them into specific positions ie "put intv @1" volume @12.etc..


Why don't you just use a DATA step instead of PROC PRINT? In a data step, you can use command like this placing specific text into specific columns.

--
Paige Miller

View solution in original post

3 REPLIES 3
PaigeMiller
Diamond | Level 26

@IanW wrote:

I am trying to remove the variable labels and force them into specific positions ie "put intv @1" volume @12.etc..


Why don't you just use a DATA step instead of PROC PRINT? In a data step, you can use command like this placing specific text into specific columns.

--
Paige Miller
IanW
Calcite | Level 5

Thank You,

I just changed to code.

 

data stufft (keep=sdate intv
volume);
file test1 noprint notitle;
set recpsum;
put @1 sdate yymmdd10.
@14 intv time8.0
@26 volume $3.
;

 

This worked perfectly.

I am fairly new to SAS did not know we could print outputs though a data step.

 

Thanks again!

 

ballardw
Super User

For additional fun check the documentation for "Report Writing Interface"