BookmarkSubscribeRSS Feed
Lani
Calcite | Level 5
Hello all,

I am trying to create the output of csv files and I want the variables in the positions I prefer (I need to keep the same format for all output files). I used "keep=" option in the DATA step but it doesn't work. Thanks for your help.

Lani
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Feedback for the OP: you are posting in the SAS Procedures forum - this post is more suitable in a different forum for more general SAS DATA step processing. Suggest reviewing each forum next time before selecting one to post.

More important, post whatever SAS code you are working with, for most appropriate feedback with your issue/concern.

Clarification to statement: "I want the variables in the positions I prefer.." Are you using ODS CSV with a PROC PRINT? If so, use the VAR statement to order your variables as desired. Or if you are interested in influencing how SAS orders (internally) the variables as shown in PROC CONTENTS, it is possible to use either a LENGTH or RETAIN statement ahead of a SET or assignment to influence the variable order...but for what purpose?

Scott Barry
SBBWorks, Inc.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 673 views
  • 0 likes
  • 2 in conversation