BookmarkSubscribeRSS Feed
aj34321
Quartz | Level 8

D/All,

 

I got my EG upgraded from 4.1 to 7.1 and presently I'm facing a weird issue with the proc export. The issue is -

 

I have a dataset with all variables as Character type. (Even the numeric variables are in character format - Thats the requirement and I cannot change it back to number format). Some of the variable observations are NULL. Now when this dataset is exported into CSV format thru SAS EG 4.1 everything is good. The NULL values appear as NULL in CSV file but when exported with SAS EG 7.1 these NULL values are replaced with a period symbol ( . )

 

I tried using options missing = ''; but that only works on number variable. What do I write so that these Character variable appears NULL in CSV.

 

Experts, request your advice.

 

Rgds,

AK

1 REPLY 1
ChrisHemedinger
Community Manager
You mention PROC EXPORT, but are you really using PROC EXPORT code or are you simply using the Export task/menu from within SAS Enterprise Guide?

If using code, you have some options to control the output. If using the built-in menus (which don't generate PROC EXPORT), you might try a different technique -- such as Send To->Microsoft Excel from the data grid view.

Chris
SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

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

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