BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello,

I'm running Enterprise Guide 4.1 and need help with an export function...
I have a table with 14 columns that I need to export to a fixed width text file padded with spaces (not comma delimited).

How do you I specify my column width? This does obviously not work with the export wizard.
2 REPLIES 2
RichardH_sas
SAS Employee
I think you'd have to write code to do this -- I can't think of a feature to export a fixed-width file. You could use the DATA step as follows (simple example):

data _null_;
set sashelp.class;
file "C:\test.txt";
put @1 height @10 name;
run;
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
A lean PROC PRINT may work, such as:

OPTIONS NODATE NONUMBER NOCENTER LS=MAX PS=MAX;
TITLE1; TITLE2;
PROC PRINT U NOOBS...;
VAR ;
RUN;

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 2 replies
  • 2075 views
  • 0 likes
  • 3 in conversation