BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have a looping put statement to output a sas dataset to a text file which works fine until the field that ends at column 248. The field moves to a new row which i am guessing is caused by the fact that it goes past column 256. Then the remaining fields also go on to a new row. Each row is supposed to be 486 rows wide. Does anyone know how to get SAS to output the text file where each row goes to the appropriate length?
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
This is not an ODS or Base Reporting Procedure (PRINT, REPORT, TABULATE) question.

Generally, speaking, only FILE PRINT is limited by the LINESIZE of 256. If you creating another type of ASCII text file or sequential file, you would not have this 256 character limitation on using the PUT statement.

Your best bet for help with this question is to contact Tech Support. To send a question to Tech Support, go to http://support.sas.com/ and in the left-hand navigation pane, click on the link entitled "Submit a Problem".

cynthia
deleted_user
Not applicable
I've found that even FILE PRINT can be forced to output a wider file if there is a problem. The only time I found such a problem was on Windows, and in the definition of the output file, adding an LRECL parameter was sufficient to overcome the shortened record length and wrapping.

Kind regards

David

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 647 views
  • 0 likes
  • 2 in conversation